fix: Remove imports from fitmaker.theories.SM.aEW_MZ_GF_5F.old
-
fitmaker.theories.SM.aEW_MZ_GF_5F.oldwas removed on 2024-06-04 in b809257e, so importing them anywhere will break. -
Use include_package_data to include data JSON files
- Additionally specify the paths under the fitmaker directory to find the JSON files for the package_data dictionary.
-
Add build-system metadata required for packaging
This is sufficient to be able to do the following
$ python -m venv venv && . venv/bin/activate
$ cd fitrepo # enter repo
$ python -m pip install .
$ python -m pip show fitmaker
Name: fitmaker
Version: 0.0.1
Summary: Module for statistical inference on physics beyond the Standard Model
Home-page: https://kenmimasu.gitlab.io/fitrepo
Author: E. Bagnaschi, J. Ellis, M. Madigan, Victor Maura Breick, K. Mimasu, Alexandre Salas-Bernardez, V. Sanz, T. You
Author-email:
License:
Location: /venv/lib/python3.13/site-packages
Requires: contourpy, jupyterlab, matplotlib, notebook, numpy, pandas, scipy, seaborn
Required-by:
$ find ./fitmaker/ -type f -iname "*.json" | wc -l # data files in the repo
719
$ find $(find ../venv/ -type d -iname fitmaker) -type f -iname "*.json" | wc -l # same number of data file in install
719
$ mkdir -p run # otherwise as fitmaker dir is top level will import from repo and not installed version
$ cd run
$ python -c 'import fitmaker; print(fitmaker); from fitmaker.theories.SMEFT_fit_full import SMEFT;print(SMEFT.external_parameters)'
<module 'fitmaker' from '/venv/lib/python3.13/site-packages/fitmaker/__init__.py'>
['CHWB', 'CHD', 'Cll', 'CHbox', 'CHG', 'CHW', 'CHB', 'CW', 'CG', 'CHl3', 'CHl1', 'CHe', 'CHd', 'CHq3', 'CHq1', 'CHu', 'CHQ3', 'CHQ1', 'CHt', 'CtaH', 'CtH', 'CbH', 'CmuH', 'CcH', 'CsH', 'CtG', 'CtW', 'CtB', 'CQq38', 'CQq18', 'CQu8', 'CQd8', 'Ctq8', 'Ctu8', 'Ctd8', 'CQq31']
As MR !1 seemed a bit too much all at once, let's see if we can start small with getting things to actually be installable and importable. :)
With these changes (and light editing of the odir path logic to be findable from the install directory not the repo) this allows for running the example_notebooks/2012.02779/Fig3.ipynb and example_notebooks/2012.02779/Fig4.ipynb in full.
Edited by Matthew Feickert