valska.external_tools.pyuvsim.runner

Runner abstractions for executing pyuvsim via conda or containers.

Classes

CondaRunner(conda_activate, env_name)

Run pyuvsim via a named conda environment.

ContainerRunner(apptainer_exe, image_path[, ...])

Future: Run pyuvsim inside a container (Apptainer/Singularity).

pyuvsimInstall([install_path])

class valska.external_tools.pyuvsim.runner.CondaRunner(conda_activate: str | None, env_name: str | None)

Run pyuvsim via a named conda environment.

If conda_activate/env_name are both None, no activation lines are emitted.

bash_prefix() str

Return shell lines to activate the conda environment.

conda_activate: str | None
env_name: str | None
class valska.external_tools.pyuvsim.runner.ContainerRunner(apptainer_exe: str, image_path: Path, bind_paths: tuple[Path, ...] = ())

Future: Run pyuvsim inside a container (Apptainer/Singularity).

This is included now so we don’t need to redesign the API later. The only thing that should change is how we construct the command line; config rendering and output directory conventions stay identical.

Example future command:

apptainer exec –bind <binds> <image.sif> python -m pyuvsim.uvsim <obsparam.yaml>

apptainer_exe: str
bind_paths: tuple[Path, ...] = ()
image_path: Path
class valska.external_tools.pyuvsim.runner.pyuvsimInstall(install_path: 'Path | None' = None)
install_path: Path | None = None