Some lightweight tools to grab data from the EXFOR database using the x4i3 library, and organize it for visualization and use in model calibration and uncertainty quantification.
You have a reaction model
Currently, exfor_tools supports most reactions in EXFOR, but only a small subset of the observables/quantities. Feel free to contribute! If it doesn't meet your needs check out the project it's built on, which is far more complete: x4i3.
pip install exfor-tools
Package hosted at pypi.org/project/exfor-tools/. Otherwise, for development, simply clone the repo and install locally:
git clone git@github.com:beykyle/exfor_tools.git --recurse-submodules
pip instal exfor_tools -e
Check out the tutorials:
These demonstrate how to query for and parse exfor entries, and curate and plot data sets. In the first one, you will produce this figure:
First, download your desired version <exfor-YYYY.zip> from here: https://nds.iaea.org/nrdc/exfor-master/list.html. The latest is recomended. Then:
bash update_database.sh </path/to/exfor-XXXX.zip> --db-dir </path/where/db/should/go/>This will extract and process the data to </path/where/db/should/go/unpack_exfor-YYYY/X4-YYYY-12-31>, setting the environment variable $X43I_DATAPATH accordingly. x4i3 uses this environment variable to find the database on import, so you should add this to your environment setup. If you use bash, this will look something like this:
echo export X43I_DATAPATH=$X43I_DATAPATH >> ~/.bashrcThis functionality for modifying the database used by x4i3 is provided in x4i3_tools, which is included as a submodule.
