Skip to main content

Python library and command-line tool for postprocessing (not only) Gkeyll data

Project description

Postgkyl

pytest

This is the Postgkyl project. It is both Python library and command-line tool designed to provide unified access to Gkeyll data together with a broad variety of analytical and visualization tools.

Documentation

Full documentation of the Gkeyll project is available at ReadTheDocs.

Dependencies and Installation

Postgkyl requires the following packages:

Note that Posgkyl currently does not work with NumPy >= 2.0; the update is in the works. In addition, there are two optional dependencies:

ADIOS 2 is required for reading Gkeyll 2 bp output files and it is not needed when working only with gkylzero. pytest is required only for developers.

Setting up virtual environment (recommended)

We strongly recommend creating a virtual Python environment for everybody working with more than one Python project (this includes even using both Postgkyl and Sphinx). The two recommended options are venv and mamba.

With venv, one can create the virtual environment with:

python -m venv /path/to/new/virtual/environments/pgkyl

then activate it with:

| bash/zsh | source <venv>/bin/activate | | fish | source <venv>/bin/activate.fish | | csh/tcsh | source <venv>/bin/activate.csh |

and deactivate with:

deactivate

With mamba, one can create the virtual environment with:

mamba create -n pgkyl

then activate with:

mamba activate pgkyl

and deactivate with:

mamba deactivate

Note that with mamba, one can also use the provided environment.yml file, which also includes dependency specifications:

mamba env create -f environment.yml

Installing Postgkyl

The Postgkyl itself is installed with pip.[^1] Developers and uses who want to have the most up-to-date version should install Postgkyl from the source code:

git clone git@github.com:ammarhakim/postgkyl.git
cd postgkyl
pip install -e .[adios,test]

Alternatively, Postgkyl can be installed directly from PyPI:

pip install -e postgkyl[adios,test]

Note that ADIOS2 is not available on PyPI for Mac OSX; therefore, Mac users who want to use it need to install the dependency from elsewhere, for example, using the above-mentioned mamba and then do not use the adios tag with pip.

Testing

Postgkyl utilizes pytest for testing. The tests can be called manually from the root Postgkyl directory simply by using:

pytest [-v]

Authors

The full list of authors can be found here.

License

See Gkyl License for usage conditions.

[^1]: This does not require any additional modifications of PYTHONPATH. If Postgkyl was used previously through PYTHONPATH, we strongly recommend removing the path to the Postgkyl repository from the variable.

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

postgkyl-1.7.6.tar.gz (128.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

postgkyl-1.7.6-py3-none-any.whl (161.5 kB view details)

Uploaded Python 3

File details

Details for the file postgkyl-1.7.6.tar.gz.

File metadata

  • Download URL: postgkyl-1.7.6.tar.gz
  • Upload date:
  • Size: 128.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for postgkyl-1.7.6.tar.gz
Algorithm Hash digest
SHA256 db134c7fffa953b15b3880e85835b2dc645db4435fe6fcd06469f302475858f3
MD5 33fc0f79b289c1b48c6bfef8ba12a8da
BLAKE2b-256 72111062e642b36e3a3166734146d01e01551fe452fed7d3cce90497b0d6bb17

See more details on using hashes here.

File details

Details for the file postgkyl-1.7.6-py3-none-any.whl.

File metadata

  • Download URL: postgkyl-1.7.6-py3-none-any.whl
  • Upload date:
  • Size: 161.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for postgkyl-1.7.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bdff3bb58c1c3b56f03e8015b1389d844213622f2c2fd1d203197eded8ff2235
MD5 229912e1a8a30689c5c0efcd6a6013c2
BLAKE2b-256 3589689d74f8a9202f2177dd8e620d97750712977e3e6415a516fe37523f85d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page