Skip to main content

A wrapper around Pickett's SPFIT and SPCAT

Project description

Pyckett

Pyckett is a python wrapper around the SPFIT/SPCAT package (H. M. Pickett, "The Fitting and Prediction of Vibration-Rotation Spectra with Spin Interactions," J. Mol. Spectrosc. 148, 371-377 (1991)).

Install the package with pip by using the following command

pip install pyckett

If SPFIT and SPCAT cannot be executed via the commands spfit and spcat (if they are not in your PATH or have different names) point to them by setting the PYCKETT_SPFIT_PATH and PYCKETT_SPCAT_PATH environment variables to their full paths.

If you want to acknowledge LLWP, please cite the paper On the Spectroscopy of Phosphaalkynes: Millimeter- and Submillimeter-Wave Study of C2H5CP.

Documentation

Currently, the documentation is limited to the docstrings of the main library. To easily access the docstrings you can run

pip install pdoc
pdoc pyckett

after having installed Pyckett.

The CLI tools provide help texts via the -h or --help flags.

CLI Tools

Pyckett provides a set of command line utilities which perform common steps of an iterative fitting process.

pyckett_add helps adding new parameters to the fit, pyckett_omit is used for evaluating which parameters can be omitted.

pyckett_separatefits can be used to separate a global fit into separate fits for each state.

pyckett_uncertainties evaluates the uncertainties of the parameters.

pyckett_partitionfunction calculates the partition function for different temperatures.

pyckett_auto automatically builds up the Hamiltonian step by step.

pyckett_fit and pyckett_cat are shortcuts to SPFIT and SPCAT, respectively.

See the respective help functions (by adding --help after the command) to see their syntax.

Examples

You can read files from the SPFIT/SPCAT universe with the following syntax

var_dict = pyckett.parvar_to_dict(r"path/to/your/project/molecule.var")
par_dict = pyckett.parvar_to_dict(r"path/to/your/project/molecule.par")
int_dict = pyckett.int_to_dict(r"path/to/your/project/molecule.int")
lin_df = pyckett.lin_to_df(r"path/to/your/project/molecule.lin")
cat_df = pyckett.cat_to_df(r"path/to/your/project/molecule.cat")
egy_df = pyckett.egy_to_df(r"path/to/your/project/molecule.egy")

erham_df = pyckett.erhamlines_to_df(r"path/to/your/project/molecule.in")

Finalize cat file

This function merges the cat and lin dataframes, sums up duplicate values in the cat file and allows to translate quantum numbers:

fin_cat_df, fin_lin_df = pyckett.finalize(cat_df, lin_df, qn_tdict, qn)

Find candidates for double-resonance measurements

This function finds possible transition arrangements for double-resonance measurements. Input two cat dataframes with the transitions that are in the range of your probe and pump source.

results_df = pyckett.get_dr_candidates(cat_df1, cat_df2)

Check Crossings

pyckett.check_crossings(egy_df, [1], range(10))

Plot Mixing Coefficients

pyckett.mixing_coefficient(egy_df, "qn4 == 1 and qn2 < 20 and qn1 < 20 and qn1==qn2+qn3")

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

pyckett-0.1.18.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

pyckett-0.1.18-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file pyckett-0.1.18.tar.gz.

File metadata

  • Download URL: pyckett-0.1.18.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.1

File hashes

Hashes for pyckett-0.1.18.tar.gz
Algorithm Hash digest
SHA256 c7ef5a3692dc0de4eb9cecb7e9ff7a2c3bffb28eb974ee18d24142337b230f17
MD5 dba729600672f1bcd5392d9f7b00f3bd
BLAKE2b-256 4229a40c6081b833d210071da7bcfac60f7db6df167ae4a80302a7b036f92bd2

See more details on using hashes here.

File details

Details for the file pyckett-0.1.18-py3-none-any.whl.

File metadata

  • Download URL: pyckett-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.1

File hashes

Hashes for pyckett-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 b76d412f08c07f663b12e1b93916b585f565b43347bd19f3ffc2017ba111180c
MD5 dc822684649427b791fc347c797e838a
BLAKE2b-256 739dbe5ccf542a35fe2480c9fa41e3f5addec6fdf95a5b1c3b073bf33349a445

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