Skip to content

Commit

Permalink
Restore use of fiberassign_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Jul 19, 2024
1 parent 17325e0 commit 314e144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/desispec/io/photo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 314e144

Please sign in to comment.