cms-analysis / CombineHarvester

CMSSW package for the creation, editing and analysis of combine datacards and workspaces
cms-analysis.github.io/CombineHarvester/
15 stars 180 forks source link

Ensure datacard parsing does not crash when using autoMCStats and few processes #274

Closed adewit closed 2 years ago

adewit commented 2 years ago

If only using a few processes, the number of words in the 'autoMCStats' line can be equal to the number of words in a normal systematics line, leading to a parsing error. This change checks that the second word of the line is not 'autoMCStats' before invoking the 'normal systematics' parsing loop. Fixes #273