-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Edward Parkinson
committed
Dec 21, 2020
1 parent
91f8ccf
commit e23230b
Showing
1 changed file
with
47 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,57 @@ | ||
# PyPython | ||
A Python package to make using Python a wee bit easier. | ||
# pyPython | ||
|
||
A Python package to make using the Monte Carlo radiative transfer and ionization | ||
code Python a wee bit easier. Whilst originally this package was meant to be | ||
simple and focused on creating a tool to analyse the data from Python , it has | ||
become the final resting place for a lot of other code I have used to do | ||
science over the course of my PhD. | ||
|
||
## Usage | ||
|
||
Provided in the `examples` directory are scripts which use various parts of | ||
the package to, for example, plot spectra, process the atomic data or some | ||
general error checking for models. | ||
|
||
## Submodules | ||
|
||
- accretionDisc - calculate basic accretion disc quantities | ||
- atomicData - process some of Python's atomic data files | ||
- blackbody - calculate basic quantities for a blackbody | ||
- blackhole - calculate basic quantities for black holes | ||
- constants - CGS constants | ||
- conversion - convert between units or physical quantities | ||
- errors - errors and exceptions used throughout the package | ||
- grid - functions for setting up a grid or parameter files or modifying parameter files | ||
- hpc - functions for creating .slurm files or adding models to a .slurm queue | ||
- ionization - convert ionization quantities | ||
- log - logging utilities | ||
- mailNotifications - email notification utilities | ||
- pythonUtil - utility functions for running Python or other basic utility things | ||
- quotes - some stupid quotes | ||
- simulation - check the errors and convergence of a simulation | ||
- spectrumCreate - functions to create a spectrum from the raw extracted photons | ||
- spectrumPlot - plot the extracted spectra | ||
- spectrumUtil - utility functions for manipulating spectrum files | ||
- windModels - TODO | ||
- windPlot - plot the simulation grid | ||
- windUtil - utility functions for manipulating the wind_save files | ||
|
||
## Dependencies | ||
Fortunately, there are no _weird_ dependencies for PyPython. The majority of the | ||
packages used throughout come with the standard Python installation or are | ||
easily available through `pip` or `conda`. | ||
|
||
pyPython requires Python 3.5+. | ||
|
||
There are no _"weird"_ dependencies for pyPython. When installing using the | ||
method below (i.e. using pip), the required dependencies will be automatically | ||
installed. | ||
|
||
## Installation | ||
PyPython can be easily installed using pip. The easiest way to install is to use | ||
|
||
pyPython can be easily installed using pip. The easiest way to install is to use | ||
the following command in the root directory, | ||
|
||
```bash | ||
$ pip install -e . | ||
``` | ||
|
||
## Examples | ||
|
||
Provided in the `examples` directory are example scripts created to show how one | ||
might choose to use PyPython. The name of the scripts are hopefully | ||
self-explanatory in what they create. | ||
You may need to use --user if installing on a shared machine where you do not | ||
have administrator privileges, or do not want to install it for all users. |