Skip to content

Fix bug occuring when no data samples are selected

Chris Scheulen requested to merge stack_nodata_fix into master

Previously, Maxima from MC Stack and Data histogram were always compared in scripts/HelperModules/Plotting.py to correctly scale output histograms. This would lead to a crash in cases where no Data samples were defined in the config.

The fix adds a check of the Data histogram variable against None to prevent this. Additionally, a redundant stack initialisation is removed.

Merge request reports