Require that the containers of pedestal, flatfield and cosmic parameters are arrays in the datacheck. Fixes #440 #442
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #440, an exception thrown by lstchain_data_r0_to_dl1 when just one event of a given type (pedestal, flatfield or cosmic) is found in a file. We just require now a minimum of 2 events (instead of 1) - the problem was that something expected to be an array became a plain integer in case it had one single element. It was occurring only when a small number of events was processed (for test) from a raw file.
Note that this will make the script work, but the produced datacheck_dl1...h5 files may still give trouble if afterwards one tries to process them to produce the check plots. This is however irrelevant since data check is run for the full raw files.