Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzam committed Oct 6, 2023
1 parent cc33e99 commit 6001000
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lensless/utils/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,13 @@ def __init__(
self.measurement_ext = measurement_ext.lower()
self.original_ext = original_ext.lower()

files = natural_sort(glob.glob(os.path.join(self.lensless_dir, "*." + measurement_ext)))
files = natural_sort(glob.glob(os.path.join(self.measured_dir, "*." + measurement_ext)))

self.files = [os.path.basename(fn) for fn in files]

if len(self.files) == 0:
raise FileNotFoundError(
f"No files found in {self.lensless_dir} with extension {self.measurement_ext }"
f"No files found in {self.measured_dir} with extension {self.measurement_ext }"
)

# check that corresponding files exist
Expand Down

0 comments on commit 6001000

Please sign in to comment.