Skip to main content

A tool to analyze results from Zeltron

Project description

Zeltron AnAlysis with Python (ZAAPy)

PyPI PyPI

-->

zaapy is a 2D visualization command line tool for Zeltron. It works with h5-formatted data from Zeltron and GRZeltron

Data Formats

Accepted formats for the data: GRZeltron: *.h5 Zeltron: *.h5

:warning: :construction: This project and documentation are under construction :construction: :warning:

Installation

:warning: zaapy requires Python 3.8 or newer. Installation method:

$ pip install zaapy

Usage

Command line

The zaapy CLI gets its parameters from two sources:

  • command line parameters
  • default values

Command lines parameters take priority over default values.

To get help, run

$ zaapy --help
usage: zaapy [-h] [-dir DATADIR] [-field FIELD] [-it I1 I2 DT]
            [-vmin VMIN] [-vmax VMAX] [-cmap CMAP] [-dpi DPI]
            [-geom {cartesian, spherical}] [-d] [-log] [-range x x x x]
            [-spec SPEC] [-plane x x] [-title TITLE] [-fmt FMT]

optional arguments:
 -h,--help          show this help message and exit
 -dir DATADIR       location of output files and parameter files (default: '.')
 -field FIELD       field to plot
 -it I1,I2,DT       timesteps to plot
 -vmin VMIN         min value for colorbar
 -vmax VMAX         max value for colorbar
 -cmap CMAP         choice of colormap for the map
 -dpi DPI           image file resolution
 -geom              geometry of the simulation (choice: 'cartesian','spherical')
 -spec              species to load (default: 'electrons')
 -range             range of matplotlib window
 -plane             projection plane
 -title             name of the field in the colorbar
 -fmt               format of output image file

boolean flag:
 -log               plot the log10 of the field f, i.e. log(f)

CLI-only option:
 -d                 to display the plot, turned off if multiple timesteps to plot
 -version           display version number

Python module

zaapy can be used as a python module to load and work with data from simulation done with Zeltron.

from zaapy.api import GasDataSet,compute

ds=GasDataSet()

Contribute

We use pre-commit hooks to format the code in order to reduce bad coding behaviour

Support

If you face an issue or a bug (might just be a feature :wink:), please report it as an issue on this repository


Authors and acknowledgment

Author: Adrien Soudais

Acknowledgments: Gaylor Wafflard-Fernandez, Clément Robert, Ileyk El Mellah

License

GNU GENERAL PUBLIC LICENSE

Project status

Still under development

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

zaapy-0.2.1.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

zaapy-0.2.1-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file zaapy-0.2.1.tar.gz.

File metadata

  • Download URL: zaapy-0.2.1.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for zaapy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 75cd67d86cc9078155c21457ca39622ef2408362301640e42de0a7c1efede800
MD5 ec9e6a4176086bcbec59d5b917e5d632
BLAKE2b-256 395481f95f33d6fd8185ed4b6a783bbf7355e1ea7cdb2edd7d7103bd98c6067d

See more details on using hashes here.

File details

Details for the file zaapy-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: zaapy-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for zaapy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6d658449303993eb4954247323da1e71497be59970f5bb38ef7560481b9c75a
MD5 bd366c8d01270cd3be1cab80a4c69c0e
BLAKE2b-256 bb0468841c2905477640aefc8adf04564992fead8c418c284e81cbdcdbdfa8d7

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