Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Parkinson committed Dec 21, 2020
1 parent 91f8ccf commit e23230b
Showing 1 changed file with 47 additions and 11 deletions.
58 changes: 47 additions & 11 deletions README.md
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.

0 comments on commit e23230b

Please sign in to comment.