HEP-PBSP / SIMUnet

The public code for SIMUnet, a NNPDF based tool to perform simultaneous determination of PDFs and EFT Wilson coefficients.
https://hep-pbsp.github.io/SIMUnet/
GNU General Public License v3.0
2 stars 2 forks source link

Weird crash II #29

Closed MaeveMadiganMM closed 9 months ago

MaeveMadiganMM commented 9 months ago

Validphys crashes for a data-theory comparison (runcard below). This happens with either the 'use_cuts : internal' or 'use_cuts : fromfit' setting. The error message is the following:

Traceback (most recent call last):
  File "/Users/maevemadigan/miniconda3/envs/simu/bin/validphys", line 33, in <module>
    sys.exit(load_entry_point('validphys', 'console_scripts', 'validphys')())
  File "/Users/maevemadigan/Documents/*Work/*PBSP/simunet_release/validphys2/src/validphys/scripts/main.py", line 10, in main
    vp.main()
  File "/Users/maevemadigan/Documents/*Work/*PBSP/simunet_release/validphys2/src/validphys/app.py", line 163, in main
    a.main()
  File "/Users/maevemadigan/miniconda3/envs/simu/lib/python3.8/site-packages/reportengine/app.py", line 395, in main
    self.run()
  File "/Users/maevemadigan/Documents/*Work/*PBSP/simunet_release/validphys2/src/validphys/app.py", line 158, in run
    super().run()
  File "/Users/maevemadigan/miniconda3/envs/simu/lib/python3.8/site-packages/reportengine/app.py", line 380, in run
    rb.execute_sequential()
  File "/Users/maevemadigan/miniconda3/envs/simu/lib/python3.8/site-packages/reportengine/resourcebuilder.py", line 166, in execute_sequential
    result = self.get_result(callspec.function,
  File "/Users/maevemadigan/miniconda3/envs/simu/lib/python3.8/site-packages/reportengine/resourcebuilder.py", line 177, in get_result
    fres =  function(**kwdict)
  File "/Users/maevemadigan/Documents/*Work/*PBSP/simunet_release/validphys2/src/validphys/results.py", line 332, in dataset_bsm_factor
    parsed_bsm_facs = parse_simu_parameters_names_CF(dataset.simu_parameters_names_CF, dataset.cuts)
TypeError: parse_simu_parameters_names_CF() missing 1 required positional argument: 'cuts'

data-theory.yaml:

meta:
    title: Simunet data-theory comparison
    keywords: [data theory comparison]
    author: Maeve Madigan

pdfs:
    - id: 230809-jmm-simunet_alltop_nlo_lin
      label: 230809-jmm-simunet_alltop_nlo_lin

pdf: 230809-jmm-simunet_alltop_nlo_lin
fit: 230809-jmm-simunet_alltop_nlo_lin

theoryid: 200

use_cuts: fromfit
use_pdferr: True

dataset_inputs:
  - {dataset: CMS_TTBAR_13TEV_TTMNORM}

template_text: |
  {@dataset_inputs plot_fancy@}
  {@dataset_inputs::pdfs group_result_table@}

actions_:
  - report(main=true)
comane commented 9 months ago

Hi @MaeveMadiganMM , this should be fixed in PR #30, can you try again and let me know.