Skip to content

Commit

Permalink
test resume
Browse files Browse the repository at this point in the history
  • Loading branch information
camillebrianceau committed Oct 16, 2024
1 parent af7ad48 commit b60abd5
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions clinicadl/splitter/split_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ def find_splits(maps_path: Path) -> List[int]:
def find_stopped_splits(maps_path: Path) -> List[int]:
"""Find which splits for which training was not completed."""
existing_split_list = find_splits(maps_path)
stopped_splits = []
for split in existing_split_list:
for dir in list((maps_path / f"split-{split}").iterdir()):
if (
maps_path / f"split-{split}" / "tmp"
).is_dir() or "best-" not in dir.name:
stopped_splits.append(split)

stopped_splits = [
split
for split in existing_split_list
if (maps_path / f"split-{split}" / "tmp")
in list((maps_path / f"split-{split}").iterdir())
]
return stopped_splits


Expand Down

0 comments on commit b60abd5

Please sign in to comment.