Skip to content

Commit

Permalink
find csv with findfile
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Sep 13, 2024
1 parent 7927fef commit 552548d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/desispec/scripts/zcatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def main(args=None):

if not os.path.exists(tilefile):
log.warning(f'Tiles file {tilefile} does not exist. Trying CSV instead.')
tilefile = tilefile.replace('.fits', '.csv')
tilefile = io.findfile('tiles_csv')
tilefile_format = 'ascii.csv'
if not os.path.exists(tilefile):
log.critical(f"Could not find a valid tiles file!")
Expand Down

0 comments on commit 552548d

Please sign in to comment.