itasc.core.paths

Unified path resolution for the ITASC pipeline directory layout.

Module attributes

CONFIG_NAME

Filename ITASC writes a position's metadata/config into.

Functions

pos_dir(root, pos)

Return <root>/pos<pos:02d>.

position_config_path(position_dir)

Path to a position's ITASC config file.

itasc.core.paths.CONFIG_NAME = 'itasc_config.json'

Filename ITASC writes a position’s metadata/config into.

itasc.core.paths.pos_dir(root, pos)[source]

Return <root>/pos<pos:02d>.

Return type:

Path

Parameters:
itasc.core.paths.position_config_path(position_dir)[source]

Path to a position’s ITASC config file.

Prefers the current itasc_config.json. When it is absent but a legacy cellflow_config.json (written before the rename) is present, returns the legacy path so old data keeps loading. When neither exists, returns the current name, so new writes always use it.

Return type:

Path

Parameters:

position_dir (Path | str)