Skip to main content

Post-processing and visualization for PIC codes

Project description

nata logo

PyPI Documentation Status

Nata is a python package for post-processing and visualizing simulation output for particle-in-cell codes. It utilizes the numpy interface to provide a simple way to read, manipulate, and represent simulation output.

Installing nata

Nata is available on PyPI. You can install it by running the following command inside your terminal

pip install nata

It can be used inside an IPython shell or jupyter notebook together with ipywidgets. Hence, you might need to run after the installation

# can be skipped for notebook version 5.3 and above
jupyter nbextension enable --py --sys-prefix widgetsnbextension

and if you want to use it inside JupyterLab (note that this requires nodejs to be installed)

jupyter labextension install @jupyter-widgets/jupyterlab-manager

In case of issues, please visit the installation section of ipywidgets for further details.

Contributing to nata

Any type of contribution to nata is appreciated. If you have any issues, please report them by adding an issue on GitHub. But if you wish to directly contribute to nata, we recommend to setup a local development environment. Follow the instruction below for more details.

Getting the source code

The source code is hosted on GitHub. Simply create a fork and apply your changes. You can always push any changes to your local fork, but if you would like to share your contribution, please create a pull request, so that it can be reviewed.

Local Development Environment

For the local development environment, we use poetry. This allows us to deal better with dependencies issues and to ensure coding standards without the burden of manually fixing and checking for styles. To use poetry, simply install it using the latest version by running the following command in your terminal.

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python

Afterwards, simply run

poetry install

which will install all the dependencies (including development packages) in a virtual environment. If you wish to run a command inside the virtual environment, simply run it by poetry run <your command>, e.g. to run all the test

poetry run pytest tests

Alternatively, you can directly use the virtual environment by running the command

poetry shell

which will spawn a shell inside the virtual environment. With this, you can even run jupyter outside of the source directory.

In addition, we use pre-commit to help us keep consistency in our development without any additional burden. Please use it as well. Inside the root directory of the repository, run the command

poetry run pre-commit install

which will create commit hooks for you and modify files keeping a consistent structure.

Credits

Nata is created and maintained by Anton Helm and Fábio Cruz.

The development is kindly supported by the Group for Lasers and Plasmas (GoLP).

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

nata-0.0.3.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

nata-0.0.3-py3-none-any.whl (57.2 kB view details)

Uploaded Python 3

File details

Details for the file nata-0.0.3.tar.gz.

File metadata

  • Download URL: nata-0.0.3.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.0 Darwin/19.6.0

File hashes

Hashes for nata-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7caf765fc4a9acc512cc463eb3900dfda78a0e30d9629f214ee0499a6fea86a1
MD5 1264dae3473d3162279b9f927eb0f9dc
BLAKE2b-256 34ecf7ea50b0816a3d91d381c199c05284d3bbd1233a52c0eecbe3611f55f1bf

See more details on using hashes here.

File details

Details for the file nata-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: nata-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 57.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.0 Darwin/19.6.0

File hashes

Hashes for nata-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26876e88c399b6eac18becc272d4be86318073712c74eee07683e77e64b12d52
MD5 50fc1fa0c18d977d265deff9b5c848d6
BLAKE2b-256 f27fa7ba2c48c736ad82094a5a24528b951c942fd7776578a10cb4c5deb9bdb1

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