fermi-lat / Fermitools-conda

Conda recipe files for the Fermi Sciencetools software analysis package: Fermitools
https://fermi.gsfc.nasa.gov/ssc/data/analysis/
BSD 3-Clause "New" or "Revised" License
34 stars 16 forks source link

Bring back `$FERMI_DIFFUSE_DIR` #139

Closed henrikef closed 1 year ago

henrikef commented 1 year ago

I believe the environment variable $FERMI_DIFFUSE_DIR used to (at some point in the past) set by the science tools to point to $FERMI_DIR/refdata/fermi/galdiffuse/ . Some older examples/tutorials rely on this and I was just wondering if it'd be possible to have this set again by the fermi tools (in the conda activate step, I guess).

donhorner commented 1 year ago

I don't recall us ever setting this environment variable. Even going back to the old ScienceTools config files, I only see FERMI_DIR, FERMI_INST_DIR, and FERMI_PERLLIBS but no FERMI_DIFFUSE_DIR. If I google, the only place I can find FERMI_DIFFUSE_DIR is in the fermipy documentation. For instance in the install guide, it says:

Starting with fermipy version 0.19.0, we are using the diffuse and istoropic emission model from the fermitools-data package rather than including them in fermipy. However, for working on older analyses created with earlier version of fermipy you can set the FERMI_DIFFUSE_DIR environmental variable to point at a directory that include the version of the models that you wish to use.

which makes me think this is a fermipy thing.

henrikef commented 1 year ago

Ah I see, sorry about that! I thought the instructions meant to overwrite the existing path. I'll see if we can just set $FERMI_DIFFUSE_DIR within fermipy.