Skip to content

Commit

Permalink
Use configured bands for script choices.
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-neal committed Aug 3, 2018
1 parent f3c2f66 commit b94067e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions eniric_scripts/aces_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _parser():
"--bands",
type=str,
default="J",
choices=["ALL", "VIS", "GAP", "Z", "Y", "J", "H", "K", "None"],
choices=eniric.bands["all"],
help="Wavelength bands to select. Default=J.",
nargs="+",
)
Expand All @@ -103,7 +103,7 @@ def _parser():
"--ref_band",
help="SNR reference band. Default=J. (Default=100). "
"'self' scales each band relative to the SNR itself.",
choices=["SELF", "self", "VIS", "GAP", "Z", "Y", "J", "H", "K"],
choices=["SELF", "self"].extend(eniric.bands["all"]),
default="J",
type=str,
)
Expand Down
6 changes: 3 additions & 3 deletions eniric_scripts/doppler_shift_atmosphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import sys

import numpy as np

import eniric
import eniric.atmosphere as atm
import eniric.IOmodule as io

Expand All @@ -19,15 +19,15 @@ def _parser():
:returns: the args
"""
parser = argparse.ArgumentParser(
description=("Calculate radial velocity" "precision of model spectra.")
description=("Calculate radial velocity precision of model spectra.")
)

parser.add_argument(
"-b",
"--bands",
type=str,
default="J",
choices=["ALL", "VIS", "GAP", "Z", "Y", "J", "H", "K", None, "visible"],
choices=eniric.bands["all"],
help="Wavelength bands to select. Default=J.",
nargs="+",
)
Expand Down
4 changes: 2 additions & 2 deletions eniric_scripts/nIR_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _parser():
"--bands",
type=str,
default="J",
choices=["ALL", "VIS", "GAP", "Z", "Y", "J", "H", "K", "None"],
choices=eniric.bands["all"],
help="Wavelength bands to select. Default=J.",
nargs="+",
)
Expand All @@ -56,7 +56,7 @@ def _parser():
"--ref_band",
help="SNR reference band. Default=J. (Default=100). "
"'self' scales each band relative to the SNR itself.",
choices=["self", "VIS", "GAP", "Z", "Y", "J", "H", "K"],
choices=["SELF","self"].extend(eniric.bands["all"]),
default="J",
type=str,
)
Expand Down
2 changes: 1 addition & 1 deletion eniric_scripts/nIR_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _parser():
"--band",
type=str,
default="ALL",
choices=["ALL", "VIS", "GAP", "Z", "Y", "J", "H", "K"],
choices=eniric.bands["all"],
help="Wavelength band to select",
nargs="+",
)
Expand Down
2 changes: 1 addition & 1 deletion eniric_scripts/split_atmmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _parser():
type=str,
default=None,
nargs="+",
choices=["ALL", "VIS", "GAP", "Z", "Y", "J", "H", "K"],
choices=eniric.bands["all"],
help="Wavelength band to select, Default='All'",
)
parser.add_argument(
Expand Down

0 comments on commit b94067e

Please sign in to comment.