tanat.core package#
Submodules#
tanat.core.context module#
Workspace context.
tanat.core.format module#
Helpers for output format validation and DataFrame conversions.
- tanat.core.format.resolve_fmt(fmt: str, allowed: tuple[str, ...], default: str) str[source]#
Validate and normalize the output format.
- Parameters:
fmt – Requested output format.
allowed – Allowed format values.
default – Default format used when fmt is
None.
- Returns:
The validated output format.
- Raises:
ValueError – If fmt is not one of allowed.
tanat.core.path module#
Path resolution utilities
tanat.core.registry module#
Factory registry.
tanat.core.validation module#
Lightweight type guards used across the library.
These helpers exist to break import cycles.
The check relies on a duck-typing marker (e.g. :pyattr:`Criterion.__criterion__`) so this module has zero dependency on the validated types.
- tanat.core.validation.ensure_criterion(obj) None[source]#
Raise
TypeErrorif obj is not aCriterioninstance.Uses the :pyattr:`Criterion.__criterion__` marker for an import-cycle-safe duck-typing check, so internal callers (pools, sequences, trajectories) do not need to import
Criterionat module load time.
tanat.core.workspace module#
Workspace class.
- class tanat.core.workspace.Workspace(root_path: str)[source]#
Bases:
objectWorkspace class to manage directory for data storage.
Module contents#
Package stub.