Skip to content

Commit

Permalink
fix: merge mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
melisande-c committed Nov 14, 2024
1 parent 73d54a8 commit 3f80894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/careamics/model_io/bioimage/model_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ def extract_model_path(model_desc: ModelDescr) -> tuple[Path, Path]:
weights_path = model_desc.weights.pytorch_state_dict.download().path

for file in model_desc.attachments:
if file.download().path.name == "careamics.yaml":
config_path = file.source.path
if file.source.path.name == "careamics.yaml":
config_path = file.download().path
break
else:
raise ValueError("Configuration file not found.")
Expand Down

0 comments on commit 3f80894

Please sign in to comment.