Skip to main content

Python package for collecting BOUT++ data

Project description

boutdata

Build Status codecov Python pypi package PEP8 License

pip-package of what is found in BOUT-dev/tools/pylib/boutdata. Note that BOUT-dev/tools/pylib/boutdata will likely be replaced by this repo in BOUT++ v4.3.0. See this issue, this pull request and this pull request for details.

NOTE: This package will likely be superseded by xBOUT in the near future

Dependencies

boutdata depends on boututils which again depends on netcfd4 which requires HDF5 and netcdf-4 are installed, and that the nc-config utility is in your PATH. This can be install with

sudo apt-get install libhdf5-serial-dev netcdf-bin libnetcdf-dev

in ubuntu

Install

pip install boutdata

Examples

Reading data from dump files:

from boutdata import *
ni = collect("Ni")

When boutdata is installed as a package (e.g. with pip or conda), a command-line program is provided as an interface to squashoutput:

$ bout-squashoutput

bout-squashoutput provides tab-completion of arguments if argcomplete is installed and activated (see https://kislyuk.github.io/argcomplete/).

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

boutdata-0.1.9.tar.gz (72.5 kB view hashes)

Uploaded source

Built Distribution

boutdata-0.1.9-py3-none-any.whl (76.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page