desihub / specex

DESI spectrograph PSF fitting
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

What specex-specific environment variables need to be set at run time? #13

Closed weaverba137 closed 8 years ago

weaverba137 commented 8 years ago

The top-level INSTALL file mentions that HARP_PLUGIN_PATH needs to be set in order to find the specex plugin at run time.

  1. Does HARP itself also set this variable, in which case the environment variable needs to be appended to not set? Are any other packages likely to need to append to this variable?
  2. Are there other environment variables not mentioned in the documentation that need to be set at run time? For example, how does specex find and read from its data/ directory?
tskisner commented 8 years ago
  1. HARP does not set HARP_PLUGIN_PATH. Currently only specex creates harp plugins, and currently those are not even used by the pipeline (i.e. you could ignore this for now).
  2. The data directory is (thankfully) not controlled by an environment variable. Instead, it is set in the global pipeline options file, or from the commandline (if using the specex tools directly).
weaverba137 commented 8 years ago
  1. OK, but in principle there could be other packages that also create HARP plugins, which means that the proper way to declare this in a Module file is with prepend-path instead of setenv (I'm just stating the obvious for my own notes).
  2. Thank you.