eon.concorpus¶
Store path-based con blobs in a readcon-db corpus.
readcon still parses every frame. The corpus is a second copy: one
trajectory per distinct path plus blob, next to the run when config.ini
is at most eight directories up, otherwise beside the con file. A missing
readcon_db install leaves the con file as the only copy.
A dynamics movie can also ingest each directory of a simulation tree and
read those frames back with one read-only get_frame_texts call. The
.con files remain the store.
Module Contents¶
Functions¶
FNV-1a 64 over the absolute path, a NUL, and the con text. |
|
Directory of the LMDB corpus for this con path. |
|
Insert one con blob. Identical path-and-text pairs are stored once. |
|
Store one con blob. Returns |
|
Frame text for a key in this corpus, or None when it is absent. |
|
Frame text for this path’s current blob, or None when the corpus has no copy. |
|
Insert the con file’s current bytes. |
|
Directories under |
|
Ingest |
Data¶
API¶
- eon.concorpus.logger¶
‘getLogger(…)’
- eon.concorpus.traj_id(path: str, text: str) int[source]¶
FNV-1a 64 over the absolute path, a NUL, and the con text.
- eon.concorpus.corpus_dir(con_path: pathlib.Path) pathlib.Path[source]¶
Directory of the LMDB corpus for this con path.
- eon.concorpus.mirror_con_text(path, text: str) None[source]¶
Insert one con blob. Identical path-and-text pairs are stored once.
- eon.concorpus.store_frame_text(path, text: str) tuple[int, int] | None[source]¶
Store one con blob. Returns
(traj_id, 0)for a single frame.The corpus takes the con text only. A barrier is not an argument. A mode is not an argument either: it rides in the saddle frame as the displacements section.
- eon.concorpus.load_frame_text(directory: pathlib.Path, traj: int, frame_idx: int) str | None[source]¶
Frame text for a key in this corpus, or None when it is absent.
- eon.concorpus.stored_frame_text(path) str | None[source]¶
Frame text for this path’s current blob, or None when the corpus has no copy.
- eon.concorpus.directories_with_con(tree: pathlib.Path) list[pathlib.Path][source]¶
Directories under
treethat directly contain.conor.convel.