@@ -19,7 +19,7 @@ rule build_evt:
19
19
tcm_file = get_pattern_tier (config , "tcm" , check_in_cycle = False ),
20
20
ann_file = lambda wildcards : (
21
21
[]
22
- if int (wildcards ["period" ][1 :]) > 11
22
+ if int (wildcards ["period" ][1 :]) > 9
23
23
else get_pattern_tier (config , "ann" , check_in_cycle = False )
24
24
),
25
25
par_files = lambda wildcards : hit_par_catalog .get_par_file (
@@ -36,31 +36,26 @@ rule build_evt:
36
36
tier = "evt" ,
37
37
ro_input = lambda _ , input : {k : ro (v ) for k , v in input .items ()},
38
38
log :
39
- get_pattern_log (config , f "tier_evt" , time ),
39
+ get_pattern_log (config , "tier_evt" , time ),
40
40
group :
41
41
"tier-evt"
42
42
resources :
43
43
runtime = 300 ,
44
44
mem_swap = 50 ,
45
- run :
46
- shell_string = (
47
- execenv_pyexe (config , "build-tier-evt" ) + f"--configs { ro (configs )} "
48
- f"--metadata { ro (meta )} "
49
- "--log {log} "
50
- "--tier {params.tier} "
51
- "--datatype {params.datatype} "
52
- "--timestamp {params.timestamp} "
53
- "--xtc-file {params.ro_input[xtalk_matrix]} "
54
- "--par-files {params.ro_input[par_files]} "
55
- "--hit-file {params.ro_input[hit_file]} "
56
- "--tcm-file {params.ro_input[tcm_file]} "
57
- "--dsp-file {params.ro_input[dsp_file]} "
58
- "--output {output} "
59
- )
60
- if input .ann_file is not None :
61
- shell_string += "--ann-file {params.ro_input[ann_file]} "
62
-
63
- shell (shell_string )
45
+ shell :
46
+ execenv_pyexe (config , "build-tier-evt" ) + f"--configs { ro (configs )} "
47
+ f"--metadata { ro (meta )} "
48
+ "--log {log} "
49
+ "--tier {params.tier} "
50
+ "--datatype {params.datatype} "
51
+ "--timestamp {params.timestamp} "
52
+ "--xtc-file {params.ro_input[xtalk_matrix]} "
53
+ "--par-files {params.ro_input[par_files]} "
54
+ "--hit-file {params.ro_input[hit_file]} "
55
+ "--tcm-file {params.ro_input[tcm_file]} "
56
+ "--dsp-file {params.ro_input[dsp_file]} "
57
+ "--output {output} "
58
+ "--ann-file {params.ro_input[ann_file]} "
64
59
65
60
66
61
rule build_pet :
@@ -87,31 +82,26 @@ rule build_pet:
87
82
tier = "pet" ,
88
83
ro_input = lambda _ , input : {k : ro (v ) for k , v in input .items ()},
89
84
log :
90
- get_pattern_log (config , f "tier_pet" , time ),
85
+ get_pattern_log (config , "tier_pet" , time ),
91
86
group :
92
87
"tier-evt"
93
88
resources :
94
89
runtime = 300 ,
95
90
mem_swap = 50 ,
96
- run :
97
- shell_string = (
98
- execenv_pyexe (config , "build-tier-evt" ) + f"--configs { ro (configs )} "
99
- f"--metadata { ro (meta )} "
100
- "--log {log} "
101
- "--tier {params.tier} "
102
- "--datatype {params.datatype} "
103
- "--timestamp {params.timestamp} "
104
- "--xtc-file {params.ro_input[xtalk_matrix]} "
105
- "--par-files {params.ro_input[par_files]} "
106
- "--hit-file {params.ro_input[hit_file]} "
107
- "--tcm-file {params.ro_input[tcm_file]} "
108
- "--dsp-file {params.ro_input[dsp_file]} "
109
- "--output {output} "
110
- )
111
- if input .ann_file is not None :
112
- shell_string += "--ann-file {params.ro_input[ann_file]} "
113
-
114
- shell (shell_string )
91
+ shell :
92
+ execenv_pyexe (config , "build-tier-evt" ) + f"--configs { ro (configs )} "
93
+ f"--metadata { ro (meta )} "
94
+ "--log {log} "
95
+ "--tier {params.tier} "
96
+ "--datatype {params.datatype} "
97
+ "--timestamp {params.timestamp} "
98
+ "--xtc-file {params.ro_input[xtalk_matrix]} "
99
+ "--par-files {params.ro_input[par_files]} "
100
+ "--hit-file {params.ro_input[hit_file]} "
101
+ "--tcm-file {params.ro_input[tcm_file]} "
102
+ "--dsp-file {params.ro_input[dsp_file]} "
103
+ "--output {output} "
104
+ "--ann-file {params.ro_input[ann_file]} "
115
105
116
106
117
107
for evt_tier in ("evt" , "pet" ):
0 commit comments