We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 899d106 commit 0923cb9Copy full SHA for 0923cb9
libra_toolbox/neutron_detection/activation_foils/compass.py
@@ -247,11 +247,13 @@ def from_directory(
247
start_time, stop_time = get_start_stop_time(source_dir)
248
measurement_object.start_time = start_time
249
measurement_object.stop_time = stop_time
250
- except FileNotFoundError:
+ except FileNotFoundError as e:
251
if info_file_optional:
252
warnings.warn(
253
"run.info file not found. Assuming start and stop time are not needed."
254
)
255
+ else:
256
+ raise FileNotFoundError(e)
257
258
# Create detectors
259
detectors = [Detector(channel_nb=nb) for nb in time_values.keys()]
0 commit comments