File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
src/nectarchain/user_scripts/jlenain Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff 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}
5658DIRAC_OUTDIR=/ctao/user/j/jlenain/nectarcam/dqm/${camera}
5759
5860function exit_script() {
Original file line number Diff line number Diff line change 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 ()
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
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 )
You can’t perform that action at this time.
0 commit comments