scikit-hep / cabinetry

design and steer profile likelihood fits
https://cabinetry.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
26 stars 21 forks source link

feat: post-fit Asimov data generation #363

Closed alexander-held closed 2 years ago

alexander-held commented 2 years ago

Extending the model_utils.asimov_data API to allow feeding in a FitResults object to create post-fit Asimov datasets (with auxiliary data set to the best-fit values, such that subsequent fits to that dataset reproduce the best-fit values used to create the dataset). New poi_name and poi_value keyword arguments allow setting a POI to a specific value.

* model_utils.asimov_data supports post-fit Asimov dataset generation via new keyword argument fit_results
* added support for custom POI values in Asimov dataset generation
* updated pre-commit
codecov[bot] commented 2 years ago

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (327fab4) compared to base (1e865c3). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #363 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 23 23 Lines 2010 2018 +8 Branches 327 330 +3 ========================================= + Hits 2010 2018 +8 ``` | [Impacted Files](https://codecov.io/gh/scikit-hep/cabinetry/pull/363?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scikit-hep) | Coverage Δ | | |---|---|---| | [src/cabinetry/model\_utils.py](https://codecov.io/gh/scikit-hep/cabinetry/pull/363/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scikit-hep#diff-c3JjL2NhYmluZXRyeS9tb2RlbF91dGlscy5weQ==) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scikit-hep). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scikit-hep)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.