gbrammer / grizli

Grizli: The "Grism redshift and line" analysis software
MIT License
67 stars 51 forks source link

Added ability to specify ROOT_PATH in visit_processor #222

Closed TheSkyentist closed 3 months ago

TheSkyentist commented 5 months ago

Addresses #221 by allowing the user to specify ROOT_PATH for functions within visit_processor.

gbrammer commented 3 months ago

This is set as a global variable visit_processor.ROOT_PATH. You should get the same behavior as the proposed changes by setting it explicitly:

from grizli.aws import visit_processor
visit_processor.ROOT_PATH = '/my/root/path'

It doesn't necessarily have to be set immediately after importing, but can rather be done / changed at any time.

TheSkyentist commented 3 months ago

This is good to know! I'll close this PR, as the required behavior can be achieved with existing means.