paths¶
Repo-root data and simulation path helpers.
toric_spines_sim.paths
¶
Path utilities for toric_spines_sim.
Use these helpers instead of ../../data/.... Current morphologies are
data/swc/{pixels,microns}/TS{id}_wsink_r{R}um.swc (prefer r10 µm for
experiments). Historical TS*_s50_* / TS*_s200_* names live under
archive/data/swc/. Pixel and micron trees are the same geometry in
different units; pass um_per_px at conversion time (typically 0.005).
PathConfig()
¶
Configuration class for accessing project paths.
Source code in toric_spines_sim/paths.py
get_data_path(*parts)
¶
get_mesh_path(filename)
¶
Get path to a mesh file under data/mesh/.
Args:
filename: Name of the mesh file (e.g. TS1.obj).
get_cell_mesh_path()
¶
get_skeleton_path(filename)
¶
Get path to a skeleton / polylines file under data/skeletons/.
Args:
filename: Name of the file (e.g. TS1.polylines.txt).
get_swc_path(filename, units='microns')
¶
Get path to an SWC file.
Args: filename: Name of the SWC file. units: Either 'pixels' or 'microns'.
Source code in toric_spines_sim/paths.py
get_pointset_path(filename, units='microns')
¶
Get path to a pointset file.
Args: filename: Name of the pointset file. units: Either 'pixels' or 'microns'.
Source code in toric_spines_sim/paths.py
get_simulation_path(simulation_name, *parts)
¶
Get a path within a specific simulation directory.