Skip to content

Commit

Permalink
reverted chagnge
Browse files Browse the repository at this point in the history
  • Loading branch information
BalzaniEdoardo committed Feb 21, 2024
1 parent 9863782 commit b950b7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plenoptic/data/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def get_path(item_name: str):
try:
path = resources.files("plenoptic.data")
except AttributeError:
path = resources.path("plenoptic", "data").args[0]
path = pathlib.Path(resources.files("plenoptic", "data").args[0])
print(path)
fhs = [file for file in path.iterdir() if file.stem == item_name]
assert len(fhs) == 1, f"Expected exactly one file for {item_name}, but found {len(fhs)}."
return fhs[0]
Expand Down

0 comments on commit b950b7f

Please sign in to comment.