@@ -336,6 +336,7 @@ def merge_dl1_datacheck(seq_list) -> List[str]:
336336
337337 muons_dir = destination_dir ("MUON" , create_dir = False )
338338 datacheck_dir = destination_dir ("DATACHECK" , create_dir = False )
339+ slurm_account = cfg .get ("SLURM" , "ACCOUNT" )
339340
340341 list_job_id = []
341342
@@ -344,6 +345,7 @@ def merge_dl1_datacheck(seq_list) -> List[str]:
344345 cmd = [
345346 "sbatch" ,
346347 "--parsable" ,
348+ f"--account={ slurm_account } " ,
347349 "-D" ,
348350 options .directory ,
349351 "-o" ,
@@ -386,13 +388,15 @@ def extract_provenance(seq_list):
386388 log .info ("Extract provenance run wise" )
387389
388390 nightdir = date_to_dir (options .date )
391+ slurm_account = cfg .get ("SLURM" , "ACCOUNT" )
389392
390393 for sequence in seq_list :
391394 if sequence .type == "DATA" :
392395 drs4_pedestal_run_id = str (sequence .drs4_run )
393396 pedcal_run_id = str (sequence .pedcal_run )
394397 cmd = [
395398 "sbatch" ,
399+ f"--account={ slurm_account } " ,
396400 "-D" ,
397401 options .directory ,
398402 "-o" ,
@@ -433,13 +437,15 @@ def merge_files(sequence_list, data_level="DL2"):
433437
434438 data_dir = destination_dir (data_level , create_dir = False )
435439 pattern , prefix = get_pattern (data_level )
440+ slurm_account = cfg .get ("SLURM" , "ACCOUNT" )
436441
437442 for sequence in sequence_list :
438443 if sequence .type == "DATA" :
439444 merged_file = Path (data_dir ) / f"{ prefix } _LST-1.Run{ sequence .run :05d} .h5"
440445
441446 cmd = [
442447 "sbatch" ,
448+ f"--account={ slurm_account } " ,
443449 "-D" ,
444450 options .directory ,
445451 "-o" ,
@@ -467,12 +473,14 @@ def merge_muon_files(sequence_list):
467473
468474 data_dir = destination_dir ("MUON" , create_dir = False )
469475 pattern , prefix = get_pattern ("MUON" )
476+ slurm_account = cfg .get ("SLURM" , "ACCOUNT" )
470477
471478 for sequence in sequence_list :
472479 merged_file = Path (data_dir ) / f"muons_LST-1.Run{ sequence .run :05d} .fits"
473480
474481 cmd = [
475482 "sbatch" ,
483+ f"--account={ slurm_account } " ,
476484 "-D" ,
477485 options .directory ,
478486 "-o" ,
@@ -499,10 +507,12 @@ def daily_longterm_cmd(parent_job_ids: List[str]) -> List[str]:
499507 muons_dir = destination_dir ("MUON" , create_dir = False )
500508 longterm_dir = Path (cfg .get ("LST1" , "LONGTERM_DIR" )) / options .prod_id / nightdir
501509 longterm_output_file = longterm_dir / f"DL1_datacheck_{ nightdir } .h5"
510+ slurm_account = cfg .get ("SLURM" , "ACCOUNT" )
502511
503512 return [
504513 "sbatch" ,
505514 "--parsable" ,
515+ f"--account={ slurm_account } " ,
506516 "-D" ,
507517 options .directory ,
508518 "-o" ,
@@ -541,10 +551,12 @@ def cherenkov_transparency_cmd(longterm_job_id: str) -> List[str]:
541551 datacheck_dir = destination_dir ("DATACHECK" , create_dir = False )
542552 longterm_dir = Path (cfg .get ("LST1" , "LONGTERM_DIR" )) / options .prod_id / nightdir
543553 longterm_datacheck_file = longterm_dir / f"DL1_datacheck_{ nightdir } .h5"
554+ slurm_account = cfg .get ("SLURM" , "ACCOUNT" )
544555
545556 return [
546557 "sbatch" ,
547558 "--parsable" ,
559+ f"--account={ slurm_account } " ,
548560 "-D" ,
549561 options .directory ,
550562 "-o" ,
0 commit comments