Skip to content

A Python wrapper for te spectroscopy program PGopher

License

Notifications You must be signed in to change notification settings

laserkelvin/PyGOPHER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyGopher

A Python interface to the PGopher spectral simulation program.

Installation

PyGopher supports Python 3.8+. In a new environment and with the code cloned, you can simply run:

pip install .

For development dependencies, run pip install -e './[dev]'

Usage

Simplest way to get started is to do a zero-specification RNG simulation:

>>> from pygopher import PGopher
>>> pgo = PGopher.from_rng()
# returns the line list and partition function as dataframes
>>> linelist, qpart = pgo.simulate()

More flexibility in the documentation will come later, but for the most part, we keep the same abstraction as PGopher, and so Molecule, Simulation, Species objects can be freely configured as if using the GUI by passing kwargs into PGopher.from_rng:

>>> pgo = PGopher.from_rng(species_kwargs={...}, mixture_kwargs={...})

About

A Python wrapper for te spectroscopy program PGopher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages