Skip to content

Commit

Permalink
Merge pull request #442 from moralejo/dl1checks
Browse files Browse the repository at this point in the history
Require that the containers of pedestal, flatfield and cosmic parameters are arrays in the datacheck. Fixes #440
  • Loading branch information
rlopezcoto committed Jul 3, 2020
2 parents 4679456 + cba668e commit cba0478
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lstchain/datachecks/dl1_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,17 +288,17 @@ def process_dl1_file(filename, bins, trigger_source='trigger_type'):

# fill quantities which depend on event-wise (i.e. not
# pixel-wise) parameters:
if params_pedestal_mask.sum() > 0:
if params_pedestal_mask.sum() > 1:
dl1datacheck_pedestals.fill_event_wise_info(subrun_index,
parameters,
params_pedestal_mask,
geom, bins)
if params_flatfield_mask.sum() > 0:
if params_flatfield_mask.sum() > 1:
dl1datacheck_flatfield.fill_event_wise_info(subrun_index,
parameters,
params_flatfield_mask,
geom, bins)
if params_cosmics_mask.sum() > 0:
if params_cosmics_mask.sum() > 1:
dl1datacheck_cosmics.fill_event_wise_info(subrun_index, parameters,
params_cosmics_mask,
geom, bins)
Expand Down

0 comments on commit cba0478

Please sign in to comment.