Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

For Pandeia Engine v1.5.12

Python Requirements:

setuptools408
RequiredRecommended

python 23.76+

3.67.57

numpy 1.13.317+

1.1518.41

scipy >1

1.41.1.0

astropy 2--34+

42.0.9
photutils0.7.42
synphot 0.3+pysynphot0.93.120
stsynphot 0.3+0.3six1.11.0
six1.14.0

...

setuptools

pandeia.engine v1.5.1 is not compatible with scipy 1.4+ or astropy 4+

47.3.1

Installing the Pandeia Engine requires a python environment with the dependencies listed above, a set of telescope-specific datafiles, and an optional (but highly recommended) second set of data files for additional spectral manipulation capabilities.

...

  1. Follow its installation instructions to set up a new environment if you do not already have one.
  2. Once installed, from a terminal with access to the conda environment, type "conda config --add channels http://ssb.stsci.edu/astroconda" to install the Astroconda channel.
  3. Create an AstroConda environment with the STScI package installed. For example, to create an environment named "pandeia" working under python 3.67, type
Code Block
languagebash
conda create -n pandeia stsci scipy=1.1 astropy=2synphot stsynphot python=3.67

from a terminal with access to the conda environment.

...

Code Block
languagebash
pip install pandeia.engine==1.5.12


It should also be possible to install the Pandeia Engine and all its dependencies by simply running "pip install pandeia.engine==1.5.12" but this is not recommended and users are likely to run into more issues if it is installed this way.

...

Download and untar the files to a suitable location.

...

*Both telescope datasets may be untarred to the same location to produce an engine that can work with either telescopeobservatory; any files the two packages have in common may be overwritten.

...

Code Block
Pandeia Engine version:  1.5.12
Pandeia RefData version:  1.5.12
Pysynphot Data:  /your/data/directory/pysynphotsynphot


Helper Script

The following script assumes you are operating in a terminal where a conda installation has been installed in $HOME/anaconda and has been activated, that you've installed the pandeia refdata in ${HOME}/data/pandeia, and the cdbs folder from the additional dataset moved and renamed to ${HOME}/data/pysynphotsynphot

Code Block
languagebash
titleInstallation script
linenumberstrue
conda config --add channels http://ssb.stsci.edu/astroconda
conda create -n pandeia stsci numpy scipy=1.1 astropy=2 synphot stsynphot python=3.67
mkdir -p ~/anaconda/envs/pandeia/etc/conda/activate.d
cat >>~/anaconda/envs/pandeia/etc/conda/activate.d/env_vars.sh <<EOF
#!/bin/sh
export PYSYN_CDBS=${HOME}/data/pysynphotsynphot
export pandeia_refdata=${HOME}/data/pandeia
EOF
mkdir -p ~/anaconda/envs/pandeia/etc/conda/deactivate.d
cat >>~/anaconda/envs/pandeia/etc/conda/deactivate.d/env_vars.sh <<EOF
#!/bin/sh
unset PYSYN_CDBS
unset pandeia_refdata
EOF
conda activate pandeia
pip install pandeia.engine==1.5.12

This creates a pandeia environment in an already-existing conda installation (line 2) and installs the pandeia.engine (line 16), and sets up two scripts (line 4, line 10) to automatically set and unset the required environment variables every time you activate and deactivate the pandeia environment.

...