Skip to content

Commit

Permalink
propagated --cameras
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelo-alvarez committed Mar 10, 2023
1 parent 4eb147c commit 42f42d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions py/desispec/scripts/proc_tilenight.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def main(args=None, comm=None):
mpistdstars=args.mpistdstars,
use_specter=args.use_specter,
no_gpu=args.no_gpu,
cameras=args.cameras
)
err = 0
if not args.nosubmit:
Expand Down
6 changes: 5 additions & 1 deletion py/desispec/workflow/desi_proc_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ def create_desi_proc_batch_script(night, exp, cameras, jobdesc, queue, runtime=N

def create_desi_proc_tilenight_batch_script(night, exp, tileid, ncameras, queue, runtime=None, batch_opts=None,
system_name=None, mpistdstars=True, use_specter=False,
no_gpu=False,
no_gpu=False, cameras=None
):
"""
Generate a SLURM batch script to be submitted to the slurm scheduler to run desi_proc.
Expand All @@ -892,6 +892,7 @@ def create_desi_proc_tilenight_batch_script(night, exp, tileid, ncameras, queue,
mpistdstars: bool. Whether to use MPI for stdstar fitting.
use_specter: bool. Use classic specter instead of gpu_specter for extractions
no_gpu: bool. Do not use GPU even if available
cameras: str, must be camword.
Returns:
scriptfile: the full path name for the script written.
Expand Down Expand Up @@ -978,6 +979,9 @@ def create_desi_proc_tilenight_batch_script(night, exp, tileid, ncameras, queue,

cmd += f' --timingfile {timingfile}'

if cameras is not None:
cmd += f' --cameras {cameras}'

fx.write(f'# running a tile-night\n')
fx.write(f'# using {ncores} cores on {nodes} nodes\n\n')

Expand Down

0 comments on commit 42f42d8

Please sign in to comment.