Skip to main content

A library for fitting Quasielastic Neutron Scattering data.

Project description

QENSFit Version: 0.0.4

QENSFit is a little library that enables easy fitting of Quasielastic Neutron Scattering data.

It borrows some concepts from the popular lmfit package, such as the Model and Parameter objects, but everything is implemented from scratch to make it compatible with Global Fitting procedures, which are essential for QENS data.

USAGE:

  • Use LoadAscii to load data reduced with Mantid, or load your data another way and then organise it in a dictionary of QENSDataset instances. Loading of multiple datasets is supported.

  • Define your model function to fit the data. Constants are also supported.

  • Declare a list of Parameter obejcts to control their initial value, bounds, and whether the parameter is fixed and/or global.

  • Declare a model instance using the function you wrote before as the target, and feed it the list of Parameter objects and the QENSDataset.

  • Run the fit.

  • Plot fits and parameters, and Save your results.

Full Documentation at https://qensfit.readthedocs.io/

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

qensfit-0.0.4.tar.gz (53.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qensfit-0.0.4-py3-none-any.whl (41.0 kB view details)

Uploaded Python 3

File details

Details for the file qensfit-0.0.4.tar.gz.

File metadata

  • Download URL: qensfit-0.0.4.tar.gz
  • Upload date:
  • Size: 53.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for qensfit-0.0.4.tar.gz
Algorithm Hash digest
SHA256 aa13cdfc59e52190d506f2128b6f204f72da958c94e60c0237e61e79f0c07caa
MD5 50b45222af396a0a5bd9600c781154f7
BLAKE2b-256 0e04c2e5257eea227b8bef435c6dd3d59790c4e5013d08bc603b1730c4bdc1f4

See more details on using hashes here.

File details

Details for the file qensfit-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: qensfit-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 41.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for qensfit-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e90fec2fd514be0b9a6309c23bc8ddaef6de0e2f95f456c75be0a89738ec228a
MD5 c984772ecb7f3e9a32f91070b95c0840
BLAKE2b-256 91f22f4f72dc544825e2932ba5441844dc1d791d7b86c28e81d4c22e6d59c493

See more details on using hashes here.

Supported by

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