Clean
Functionality for cleaning failed trials from an scalefm working directory.
clean_failed_trials
#
clean_failed_trials(
root_directory: Path,
*,
desired_states: list[State] | None = None,
trial_ids: list[str] | None = None,
dry_run: bool = False,
delete: bool = False
) -> dict[State | str, int]
Clean trials in an scalefm working directory based on their state or IDs. If delete=True, the trials will be deleted instead of changing to PENDING state.
Source code in scalefm/clean/clean.py
clean_trials_by_id
#
clean_trials_by_id(
root_directory: Path,
trial_ids: list[str],
*,
dry_run: bool = False,
delete: bool = False
) -> dict[str, int]
Clean trials in an scalefm working directory based on their IDs.
Source code in scalefm/clean/clean.py
clean_trials_by_state
#
clean_trials_by_state(
root_directory: Path,
*,
desired_states: list[State] | None = None,
dry_run: bool = False,
delete: bool = False
) -> dict[State | str, int]
Clean trials in an scalefm working directory based on their state.