Skip to main content

Central (co)moment calculation/manipulation

Project description

Package for analyzing central moments

For example usage, look at example usage

INSTALLATION

Install needed packages

If using conda, then

conda install numpy xarray numba

From source

cd directory/path
git clone https://github.com/wpk-nist-gov/cmomy.git

# full install (note that versioning is iffy.  -I forces reinstall)
pip install -I -U .

# for editable
pip install -e .

To run tests:

pytest -v

Note that tests are a bit slow (about 1.5 min). This is due to numba jit compiler having to compile all underlying functions for all cases.

pip install

pip install -I -U git+https://github.com/wpk-nist-gov/cmomy.git@develop

Note on caching

This code makes extensive use of the numba python package. This uses a jit compiler to speed up vital code sections. This means that the first time a funciton called, it has to compile the underlying code. However, caching has been implemented. Therefore, the very first time you run a function, it may be slow. But all subsequent uses (including other sessions) will be already compiled.

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

cmomy-0.0.3.1.tar.gz (49.7 kB view hashes)

Uploaded Source

Built Distribution

cmomy-0.0.3.1-py3-none-any.whl (36.1 kB view hashes)

Uploaded Python 3

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