Skip to content

Commit

Permalink
fix new exptab cache name and submit_prod typo
Browse files Browse the repository at this point in the history
  • Loading branch information
akremin committed Aug 15, 2024
1 parent cd4b45e commit b0d9e10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/desi_submit_prod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def parse_args(): # options=None):

parser.add_argument("-p", "--production-yaml", type=str, required=True,
help="Relative or absolute pathname to the yaml file summarizing the production.")
parser.add_argument("-p", "--queue-threshold", type=int, default=4800,
parser.add_argument("-q", "--queue-threshold", type=int, default=4800,
help="The number of jobs for the current user in the queue at which the"
+ " at which the script stops submitting new jobs.")

Expand Down
4 changes: 2 additions & 2 deletions py/desispec/scripts/submit_prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from desispec.scripts.proc_night import proc_night
## Import some helper functions, you can see their definitions by uncomenting the bash shell command
from desispec.workflow.utils import verify_variable_with_environment, listpath
from desispec.workflow.redshifts import read_minimal_exptables_columns
from desispec.workflow.exptable import read_minimal_science_exptab_cols
from desispec.scripts.submit_night import submit_night
from desispec.workflow.queue import check_queue_count

Expand Down Expand Up @@ -60,7 +60,7 @@ def get_all_valid_nights(first_night, last_night):
nights, list. A list of nights on or after Jan 1 2020 in which data exists at NERSC.
"""
# TODO when merged into branch with crossnight dependencies this function changes name
fulletab = read_minimal_exptables_columns()
fulletab = read_minimal_science_exptab_cols()
nights = np.unique(fulletab['NIGHT'])
nights = nights[((nights>=first_night)&(nights<=last_night))]
return nights
Expand Down

0 comments on commit b0d9e10

Please sign in to comment.