Code Monkey home page Code Monkey logo

nata's Introduction

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).

nata's People

Contributors

ahelm avatar fabiocruz avatar pre-commit-ci[bot] avatar korzhimanov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.