-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
I was trying to use this project (thanks a lot for it, by the way!) on some of the HS3 jsons provided by ATLAS in https://www.hepdata.net/record/157024.
Unfortunately, when running e.g.
model = pyhs3.Workspace.load("ANA-HIGP-2024-32_HHH_SplusBfit_Likelihoods/NonResonantFits_NN/Likelihood_TRSM_X375_S250.json")
they all crash with
ValidationError: 2 validation errors for Workspace
distributions.`ValidationInfo(config={'title': 'Distributions'}, context=None, data={'metadata': Metadata(hs3_version='0.2', packages=[PackageInfo(name='ROOT', version='6.35.01')], authors=None, publications=None, description=None)}, field_name='root')`.0
Unknown distribution type 'histfactory_dist' does not match any of the expected distributions: 'gaussian_dist', 'mixture_dist', 'product_dist', 'crystalball_doublesided_dist', 'generic_dist', 'poisson_dist' [type=union_tag_invalid, input_value={'axes': [{'edges': [0.1,...pe': 'histfactory_dist'}, input_type=dict]
distributions.`ValidationInfo(config={'title': 'Distributions'}, context=None, data={'metadata': Metadata(hs3_version='0.2', packages=[PackageInfo(name='ROOT', version='6.35.01')], authors=None, publications=None, description=None)}, field_name='root')`.2
Unknown distribution type 'histfactory_dist' does not match any of the expected distributions: 'gaussian_dist', 'mixture_dist', 'product_dist', 'crystalball_doublesided_dist', 'generic_dist', 'poisson_dist' [type=union_tag_invalid, input_value={'axes': [{'edges': [0.1,...pe': 'histfactory_dist'}, input_type=dict]
As far as I can tell from the histfactory.md in the HS3 github, histfactory_dist is a real part of the HS3 standard. Will it be supported in pyhs3 sometime soon? And/or is there some workaround that we can use in the meantime?
(Or am I simply doing something wrong?)
People using a full-on ROOT based approach have got reasonable looking numbers out of these models, but it would be cool to get them running in python, too.
Thanks again,
Tomasz
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed