@@ -48,6 +48,62 @@ rule build_raw_orca:
48
48
"{params.ro_input} {output}"
49
49
50
50
51
+ rule build_raw_orca_bz2 :
52
+ """
53
+ This rule runs build_raw, it takes in a file.{daq_ext} and outputs a raw file
54
+ """
55
+ input :
56
+ get_pattern_tier_daq (config , extension = "orca.bz2" ),
57
+ params :
58
+ timestamp = "{timestamp}" ,
59
+ datatype = "{datatype}" ,
60
+ ro_input = lambda _ , input : ro (input ),
61
+ output :
62
+ get_pattern_tier (config , "raw" , check_in_cycle = check_in_cycle ),
63
+ log :
64
+ get_pattern_log (config , "tier_raw" , time ),
65
+ group :
66
+ "tier-raw"
67
+ resources :
68
+ mem_swap = 110 ,
69
+ runtime = 300 ,
70
+ shell :
71
+ execenv_pyexe (config , "build-tier-raw-orca" ) + "--log {log} "
72
+ f"--configs { ro (configs )} "
73
+ f"--chan-maps { ro (chan_maps )} "
74
+ "--datatype {params.datatype} "
75
+ "--timestamp {params.timestamp} "
76
+ "{params.ro_input} {output}"
77
+
78
+
79
+ rule build_raw_orca_gzip :
80
+ """
81
+ This rule runs build_raw, it takes in a file.{daq_ext} and outputs a raw file
82
+ """
83
+ input :
84
+ get_pattern_tier_daq (config , extension = "orca.gz" ),
85
+ params :
86
+ timestamp = "{timestamp}" ,
87
+ datatype = "{datatype}" ,
88
+ ro_input = lambda _ , input : ro (input ),
89
+ output :
90
+ get_pattern_tier (config , "raw" , check_in_cycle = check_in_cycle ),
91
+ log :
92
+ get_pattern_log (config , "tier_raw" , time ),
93
+ group :
94
+ "tier-raw"
95
+ resources :
96
+ mem_swap = 110 ,
97
+ runtime = 300 ,
98
+ shell :
99
+ execenv_pyexe (config , "build-tier-raw-orca" ) + "--log {log} "
100
+ f"--configs { ro (configs )} "
101
+ f"--chan-maps { ro (chan_maps )} "
102
+ "--datatype {params.datatype} "
103
+ "--timestamp {params.timestamp} "
104
+ "{params.ro_input} {output}"
105
+
106
+
51
107
rule build_raw_fcio :
52
108
"""
53
109
This rule runs build_raw, it takes in a file.{daq_ext} and outputs a raw file
0 commit comments