Skip to main content

A lightweight interface to grab and organize differential cross sections from EXFOR, using the x4i3 library.

Project description

Python package PyPI publisher

exfor-tools

Some lightweight tools to grab data from the EXFOR database using the x4i3 library, and organize it for visualization and use in the calibration of optical potentials

quick start

 pip install exfor-tools

Package hosted at pypi.org/project/exfor-tools/.

testing

TODO

examples and tutorials

Check out examples/

all_entries_lead208_pp = get_exfor_differential_data(
    target=(208, 82),
    projectile=(1, 1),
    quantity="dXS/dA",
    product="EL",
    energy_range=[10, 60], # MeV
)
print(f"Found {len(all_entries_lead208_pp.keys())} entries")
print(all_entries_lead208_pp.keys())

should print

Found 14 entries
dict_keys(['C0893', 'C1019', 'C2700', 'E1846', 'O0142', 'O0157', 'O0166', 'O0187', 'O0191', 'O0208', 'O0225', 'O0287', 'O0391', 'O0598'])

Now we can plot them.

measurements_condensed = sort_measurements_by_energy(all_entries_lead208_pp)
fig, ax = plt.subplots(1, 1, figsize=(6, 12))
entry = all_entries_lead208_pp["C0893"]
entry.plot_experiment(
    ax,
    offsets=50,
    measurements=measurements_condensed,
    label_offset_factor=2,
    label_hloc_deg=150,
    label_energy_err=False,
    label_offset=False,
)

This should produce the following figure:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exfor_tools-0.1.1.tar.gz (540.1 kB view details)

Uploaded Source

Built Distribution

exfor_tools-0.1.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file exfor_tools-0.1.1.tar.gz.

File metadata

  • Download URL: exfor_tools-0.1.1.tar.gz
  • Upload date:
  • Size: 540.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for exfor_tools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6729541d6c2e981447724c4db954dd0a9d792382938cf1c3be420fb3d71cb3e3
MD5 fd8e0832a99b1ec85cc1c0eea56ff1ac
BLAKE2b-256 905e470a3b07a139a56c7f9969a7cca0fb6320b935735c04d12e014242229a19

See more details on using hashes here.

File details

Details for the file exfor_tools-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: exfor_tools-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for exfor_tools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61441478611f0d369b9fd026764c12c160b11b770d3043ac60ce852e68cbf239
MD5 ea6a5034f14899d8b3124afdbd364ec5
BLAKE2b-256 6f28d79b87b8ed78934b1c99108def6b307ccdffe36afff11fd1d4400cbb52b7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page