Skip to content

nabu.stitching.slurm_utils

source module nabu.stitching.slurm_utils

Functions

source split_stitching_configuration_to_slurm_job(configuration: StitchingConfiguration, yield_configuration: bool = False)

generator to split a StitchingConfiguration into several SBatchScriptJob.

This will handle

  • division into several jobs according to slices and n_job
  • creation of SBatchScriptJob handling slurm configuration and command to be launched

:param StitchingConfiguration configuration: configuration of the stitching to launch (into several jobs) :param bool yield_configuration: if True then yield (SBatchScriptJob, StitchingConfiguration) else yield only SBatchScriptJob

Raises

  • TypeError

  • ImportError

source split_slices(slices: Union[slice, tuple], n_parts: int)

Raises

  • TypeError

source get_working_directory(obj: TomoObject)Optional[str]

return working directory for a specific TomoObject

Raises

  • TypeError

  • RuntimeError