Skip to main content

BNMR/BNQR Data Fitting and Visualization

Project description

bfit

Beta-NMR GUI for reading, drawing, fitting data.

Run Instructions

To run the gui, call python3 -m bfit

bfit also provides the following classes and functions at the top level:

  • Functions

    • bfit.pulsed_exp
    • bfit.pulsed_strexp
    • bfit.pulsed_biexp
    • bfit.lorentzian
    • bfit.bilorentzian
    • bfit.quadlorentzian
    • bfit.gaussian
  • Minimization

    • bfit.minuit
    • bfit.global_fitter
    • bfit.global_bdata_fitter
    • bfit.fit_bdata

A description of these functions can be found here.

Setup

Dependencies needed pre-install

  • Cython: pip3 install Cython
  • numpy: pip3 install numpy
  • Tkinter for python3: sudo apt-get install python3-tk (for example),
  • python version 3.6 or higher

Install instructions

pip3 install bfit

Optional seteup

You may want to tell bfit where the data is stored. This is done by defining environment variables BNMR_ARCHIVE and BNQR_ARCHIVE (for convenience add this to your .bashrc script). The expected file format is as follows:

/path/
    bnmr/
    bnqr/
        2017/
        2018/
            045123.msr

In this example, you would set BNQR_ARCHIVE=/path/bnqr/ to the directory containing the year directories.

If bfit cannot find the data, it will attempt to download the files from musr.ca according to the defaults set in the bdata package.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

bfit-4.3.1.tar.gz (769.5 kB view details)

Uploaded Source

File details

Details for the file bfit-4.3.1.tar.gz.

File metadata

  • Download URL: bfit-4.3.1.tar.gz
  • Upload date:
  • Size: 769.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.6.9

File hashes

Hashes for bfit-4.3.1.tar.gz
Algorithm Hash digest
SHA256 a416a8d2f8b49e7c493ef8e4ec5679d1cd3b6b27f414c6b55d022276dbf6b24e
MD5 20d1c13bf2d4fca176e75eaeab8ae4ad
BLAKE2b-256 c4ac33cba0fa7e22518fa48b8d0d5c287fe85d1306b9f6c509ec83c447b2aede

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