Skip to content

Commit

Permalink
Merge pull request #1185 from cta-observatory/onsite_bug_fix
Browse files Browse the repository at this point in the history
Add missing wild card in pedestal search function to allow looking for symlinks in glob
  • Loading branch information
rlopezcoto authored Nov 30, 2023
2 parents a59c1a7 + 67506a4 commit ad87a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lstchain/onsite.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def find_pedestal_file(pro, pedestal_run=None, date=None, base_dir=DEFAULT_BASE_

if pedestal_run is not None:
# search a specific pedestal run
file_list = sorted(ped_dir.rglob(f'{pro}/drs4_pedestal.Run{pedestal_run:05d}.0000.h5'))
file_list = sorted(ped_dir.rglob(f'*/{pro}/drs4_pedestal.Run{pedestal_run:05d}.0000.h5'))

if len(file_list) == 0:
raise IOError(f"Pedestal file from run {pedestal_run} not found\n")
Expand Down

0 comments on commit ad87a96

Please sign in to comment.