From 67506a452f041cf85d52821b6aeda6f3812b1df2 Mon Sep 17 00:00:00 2001 From: Franca Cassol Date: Wed, 29 Nov 2023 12:57:10 +0000 Subject: [PATCH] add missing wild card --- lstchain/onsite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lstchain/onsite.py b/lstchain/onsite.py index 12fc99fe31..dbeff19ef6 100644 --- a/lstchain/onsite.py +++ b/lstchain/onsite.py @@ -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")