Skip to content

Commit cad0773

Browse files
committed
Include camera number in DQM results archive
1 parent 3f08a48 commit cad0773

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/nectarchain/user_scripts/jlenain/dqm_job_submitter/dqm_processor.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ WRAPPER="singularity_wrapper.sh"
4848
# We can instantiate a particular container version:
4949
# CONTAINER="oras://ghcr.io/cta-observatory/nectarchain@sha256:cf5a812bdb1113d027facceec30009759535a8579eb4caf38f56143e65cb35e7"
5050
# or just use the latest available:
51-
CONTAINER="oras://ghcr.io/cta-observatory/nectarchain:latest"
51+
# CONTAINER="oras://ghcr.io/cta-observatory/nectarchain:latest"
5252
# of from CVMFS:
5353
# CONTAINER="/cvmfs/sw.cta-observatory.org/software/containers/nectarchain-latest"
5454
# CONTAINER="/cvmfs/sw.hess-experiment.eu/software/containers/nectarchain_w_2025_03"
55-
OUTDIR=NectarCAM_DQM_Run${runnb}
55+
# or using a local container image:
56+
CONTAINER="$HOME/nectarchain.sif"
57+
OUTDIR=NectarCAM${camera}_DQM_Run${runnb}
5658
DIRAC_OUTDIR=/ctao/user/j/jlenain/nectarcam/dqm/${camera}
5759

5860
function exit_script() {

src/nectarchain/user_scripts/jlenain/parse_dqm_fits_file.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
)
7676
continue
7777

78-
lfn = f"{args.path}/{args.camera}/NectarCAM_DQM_Run{run}.tar.gz"
78+
lfn = f"{args.path}/{args.camera}/{args.camera}_DQM_Run{run}.tar.gz"
7979

8080
if not os.path.exists(os.path.basename(lfn)):
8181
DIRAC.initialize()
@@ -98,7 +98,7 @@
9898
continue
9999

100100
fits_file = (
101-
f"./NectarCAM_DQM_Run{run}/output/NectarCAM_Run{run}/"
101+
f"./{args.camera}_DQM_Run{run}/output/NectarCAM_Run{run}/"
102102
f"NectarCAM_Run{run}_calib/NectarCAM_Run{run}_Results.fits"
103103
)
104104

@@ -125,12 +125,12 @@
125125

126126
# Remove DQM archive file and directory
127127
try:
128-
os.remove(f"NectarCAM_DQM_Run{run}.tar.gz")
128+
os.remove(f"{args.camera}_DQM_Run{run}.tar.gz")
129129
except OSError:
130130
logger.warning(
131-
f"Could not remove NectarCAM_DQM_Run{run}.tar.gz or it does not exist"
131+
f"Could not remove {args.camera}_DQM_Run{run}.tar.gz or it does not exist"
132132
)
133133

134-
dirpath = Path(f"./NectarCAM_DQM_Run{run}")
134+
dirpath = Path(f"./{args.camera}_DQM_Run{run}")
135135
if dirpath.exists() and dirpath.is_dir():
136136
shutil.rmtree(dirpath)

0 commit comments

Comments
 (0)