Skip to main content

A library for fitting Quasielastic Neutron Scattering data.

Project description

QENSFit documentation

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.

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.2.tar.gz (51.9 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.2-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qensfit-0.0.2.tar.gz
  • Upload date:
  • Size: 51.9 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.2.tar.gz
Algorithm Hash digest
SHA256 e2b0d3c694ae8295da7230e21d3b2f653bf792dcf4901c199ff7b6c0f4b67c2b
MD5 3c92af82aa80a7f6e664d053261dd3f0
BLAKE2b-256 f87059f4473d2bb5e71add6befa7cd47475efa8bdc0defd9833c171a3852f371

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qensfit-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 39.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6d9e4adad3a7ce937074614a2cc195d44ba182d59038af8ca9812be1a57df29d
MD5 4fd2088819ba932f25e427bab73e0e23
BLAKE2b-256 c60ad20b0b13d6b6285cb9dd9e55dc3c2d949d1ff438aec87a3161e66a66c733

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