Mondaic
This API reference is not for the latest stable Salvus version.

salvus.project.tools.task_chains.compute_misfits_and_gradients.task_generators.generate_cleanup_task

Functions

generate_cleanup_task()

def generate_cleanup_task(
    event_name: str,
    results_folder_name: str,
    keep_synthetics: bool,
    compute_gradients: bool,
) -> Callable:
    ...

Generate the cleanup task.

Parameters
  • event_name str — Name of the event.
  • results_folder_name str — Parent results folder name to know where to move things to.
  • keep_synthetics bool — If True, synthetic data will be copied to the output folder, otherwise not.
  • compute_gradients bool — True if gradients have been computed.
Returns Callable