Skip to content

Commit

Permalink
Add config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Feb 2, 2021
1 parent 243fae8 commit aedbea1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyreduce/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
def get_configuration_for_instrument(instrument, plot=None):
local = dirname(__file__)
instrument = str(instrument)
fname = join(local, "settings", f"settings_{instrument.upper()}.json")
if instrument in ["pyreduce", None]:
fname = join(local, "settings", f"settings_pyreduce.json")
else:
fname = join(local, "settings", f"settings_{instrument.upper()}.json")

config = load_config(fname, instrument)

Expand Down

0 comments on commit aedbea1

Please sign in to comment.