Skip to content

Commit

Permalink
fix small bug in simple dataset config (#351)
Browse files Browse the repository at this point in the history
`get_paths` gets the paths per dataset by searching for "raw", but
should return the path to the dataset containing raw
  • Loading branch information
mzouink authored Dec 3, 2024
2 parents 1df45db + 1ed3c5f commit e9697ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dacapo/experiments/datasplits/simple_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_paths(self, group_name: str) -> list[Path]:
), f"Found raw data at {level_1} and {level_2}"
return [Path(x).parent for x in level_1_matches]
elif len(level_2_matches) > 0:
return [Path(x) for x in level_2_matches]
return [Path(x).parent for x in level_2_matches]

raise Exception(f"No raw data found at {level_0} or {level_1} or {level_2}")

Expand Down

0 comments on commit e9697ad

Please sign in to comment.