From 552548de8ca777d6ad41a0a0be7fe3619fc9e8cd Mon Sep 17 00:00:00 2001 From: Benjamin Alan Weaver Date: Fri, 13 Sep 2024 13:45:20 -0700 Subject: [PATCH] find csv with findfile --- py/desispec/scripts/zcatalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/desispec/scripts/zcatalog.py b/py/desispec/scripts/zcatalog.py index 48c59daff..f5c02098f 100755 --- a/py/desispec/scripts/zcatalog.py +++ b/py/desispec/scripts/zcatalog.py @@ -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!")