Skip to content

Commit

Permalink
bugfixed
Browse files Browse the repository at this point in the history
  • Loading branch information
BalzaniEdoardo committed Feb 21, 2024
1 parent 1dcdaa1 commit 2f6f445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plenoptic/data/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_path(item_name: str):
This function uses glob to search for files in the current directory matching the `item_name`.
It is assumed that there is only one file matching the name regardless of its extension.
"""
fhs = [file for file in resources.files('plenoptic.data').iterdir() if file.stem == item_name]
fhs = [file for file in resources.path("plenoptic","data").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 2f6f445

Please sign in to comment.