Skip to content

Commit

Permalink
BUG: images not returning Path objects
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Apr 17, 2023
1 parent f030807 commit 7a76144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdaviz/configs/mosviz/plugins/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ def _id_files_by_datamodl(label_dict, filepaths, catalog_key=None):
if fp.is_dir():
# Potential names of subdirectories where images are stored
if fp.name in ("cutouts", "mosviz_cutouts", "images"):
images = sorted([file_path for file_path in glob.iglob(str(fp / '*'))])
images = sorted(fp.glob('*.fits*'))
label_dict['Direct Image'] = images
else:
continue
Expand Down

0 comments on commit 7a76144

Please # to comment.