Skip to content

Commit

Permalink
fix: building from zenodo now points to right model's path
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloitu committed Aug 11, 2024
1 parent 68128e8 commit 3b7775c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion floatcsep/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ def get_source(self, zenodo_id: int = None, giturl: str = None, **kwargs) -> Non
else:
raise FileNotFoundError("Model has no path or identified")

if not os.path.exists(self.registry.dir) or not os.path.exists(self.registry.path):
if not os.path.exists(self.registry.dir) or not os.path.exists(
self.registry.get("path")
):
raise FileNotFoundError(
f"Directory '{self.registry.dir}' or file {self.registry}' do not exist. "
f"Please check the specified 'path' matches the repo "
Expand Down

0 comments on commit 3b7775c

Please sign in to comment.