valska.external_tools.pyuvsim.runner
Runner abstractions for executing pyuvsim via conda or containers.
Classes
|
Run pyuvsim via a named conda environment. |
|
Future: Run pyuvsim inside a container (Apptainer/Singularity). |
|
- 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