Skip to main content

Tests action Run tests action Unit-test coverage GitHub license PyPI version PyPI pyversions Code style

Introduction to PyGMol

PyGMol (the Python Global Model) is a simple-to-use 0D model of plasma chemistry.

At its current form, the pygmol package defines the system of ordinary differential equations (ODE) which govern the plasma chemistry, and solves them using the scipy.integrate.solve_ivp solver. Quantities resolved presently by the pygmol model are the densities of all the heavy species specified by the chemistry input, electron density, and electron temperature (while heavy-species temperature is treated as a parameter to the model).

The equations being solved for by the model are documented in their full form in the equations document. The package inner workings, structure and some useful examples are discussed in the documentation. For further info, refer to the codebase docstrings.

Installation:

The pygmol package can be installed either from PyPI

python3 -m pip install pygmol

or from the GitHub page

python3 -m pip install git+https://github.com/hanicinecm/pygmol.git

For Developers:

It goes without saying that any development should be done in a clean virtual environment. After cloning or forking the project from its GitHub page, pygmol can be installed into the virtual environment in the editable mode by running

pip install -e .[dev]

The [dev] extra installs (apart from the package dependencies) also several development-related packages, such as pytest, coverage, ipython, or black. The unit tests can then be executed, as well as the suite of run tests and documentation tests, by running (from the project root directory)

pytest [--cov]
pytest run_tests
pytest docs

respectively.

The project does not have the requirements.txt file by design, as all the package dependencies are rather handled by the setup.py. The package therefore needs to be installed locally to run the tests, which grants the testing process another layer of usefulness.

Docstrings in the project adhere to the numpydoc styling. The project code is formatted by black.

For anyone interesting in further development of pygmol, this is where one might start.

A note on version numbering: Following the major.minor.micro versioning convention, the minor version should be increased, if the document describing the maths behind the equations requires an update. The micro version increases are reserved for any other non-breaking changes, such as documentation updates, some minor api tweaks, etc. And the major version? You tell me, I have no plan as where to go with it…

Release files for pygmol 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygmol 1.1.2
File Size Uploaded
pygmol-1.1.2.tar.gz 29.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygmol 1.1.2
File Interpreter ABI Platform
pygmol-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 58.6 kB

Release files / pygmol-1.1.2.tar.gz

Download URL pygmol-1.1.2.tar.gz
Size 29.3 kB
Tags Source
SHA-256 checksum
How to use checksums
719c7a51e8d0cd2887c8de1a8a5d1bd132207426230036dffd5af294eb1e8580
BLAKE2b-256 checksum
How to use checksums
4e6898888afe4acf8819c584d158e21c18dcb93b41b1073767d94189bb4975e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / pygmol-1.1.2-py3-none-any.whl

Download URL pygmol-1.1.2-py3-none-any.whl
Size 29.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f12717050d9273e24f6f4617a9db204d0cb36c89a8451eaa31e43f048805ed4e
BLAKE2b-256 checksum
How to use checksums
140f47ab379ce85f7b26549a7de2adf5533fb6c902bd6d3cc8fbdeee19e97eb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page