From 314e14413237600cf3e966185996aee4405a741c Mon Sep 17 00:00:00 2001 From: Benjamin Alan Weaver Date: Fri, 19 Jul 2024 11:07:26 -0700 Subject: [PATCH] Restore use of fiberassign_dir --- py/desispec/io/photo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py/desispec/io/photo.py b/py/desispec/io/photo.py index eca22965e..3c7edc4df 100644 --- a/py/desispec/io/photo.py +++ b/py/desispec/io/photo.py @@ -48,7 +48,8 @@ def gather_targetdirs(tileid, fiberassign_dir=None, verbose=False): desi_surveyops = get_readonly_filepath(os.environ['DESI_SURVEYOPS']) # desi_surveyops = os.path.join(desi_root, 'survey', 'ops', 'surveyops', 'trunk') - fiberfile, svn_exists = findfile('fiberassignsvn', tile=tileid, readonly=True, return_exists=True) + fiberfile, svn_exists = findfile('fiberassignsvn', tiles_dir=fiberassign_dir, + tile=tileid, readonly=True, return_exists=True) if not svn_exists: errmsg = f'Fiber assignment file {fiberfile} not found!' log.critical(errmsg)