Public NuGrid Python Chemical Evolution Environment
This is a code repository containing the simple stellar population code SYGMA (Stellar Yields for Galactic Modeling Applications), the single-zone galaxy code OMEGA (One-zone Model for the Evolution of Galaxies), and the observational data plotting tool STELLAB (Stellar Abundances).
Requirement: The codes are now in Python3 and use the "future" module.
Online usage: These tools can be used directly online via the public WENDI interface.
Userguides: See the Documentation folder.
Acknowledgments:
-
SYGMA: Please refer to Ritter et al. (2017).
-
OMEGA: Please refer to Côté et al. (2017).
-
STELLAB: Please refer to the NuPyCEE code library.
- Create the directory where you want to download the codes.
- Go in that directory with a terminal and clone the GitHub repository:
git clone https://github.com/NuGrid/NuPyCEE.git
- From the same directory which contains the cloned NuPyCEE directory, you can import the codes in Python mode by typing:
from NuPyCEE import omega
from NuPyCEE import sygma
from NuPyCEE import stellab
- If you want to import the NuPyCEE codes from anywhere else within your work space, you have to update your Python path using a terminal:
export PYTHONPATH="your_path_to_before_NuPyCEE:$PYTHONPATH"
- Example:
export PYTHONPATH="benoitcote/gce_code:$PYTHONPATH"
- Important: Do not forget
:$PYTHONPATH
at the end, otherwise the python path will be overwritten. - Note: All
export
commands should be put into your bash file. With MAC, it is the .bash_profile file in your home directory. Otherwise, you will need to define the paths each time you open a terminal.
- In the NuPyCEE folder, type the following
f2py -c decay_module.f95 -m decay_module
- Note: Use the f2py version that will be compatible with your Python version.