Skip to content

Commit 9332484

Browse files
committed
pre-commit cleanup
1 parent 3841122 commit 9332484

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

scripts/build_evt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def replace_evt_with_key(dic, new_key):
128128
tcm_group="hardware_tcm_1",
129129
dsp_group="dsp",
130130
hit_group="hit",
131-
tcm_id_table_pattern="ch{}"
131+
tcm_id_table_pattern="ch{}",
132132
)
133133

134134
tbl = Table(col_dict=tables)

scripts/build_skm.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ def group_files(fs_evt, fs_hit, fs_dsp, fs_tcm):
136136
tables = {}
137137
for key, config in skm_config.items():
138138
tables[key] = build_skm(
139-
f_evt = f_evt,
140-
f_hit = f_hit,
141-
f_dsp = f_dsp,
142-
f_tcm = f_tcm,
143-
f_skm= None,
144-
skm_conf = config,
139+
f_evt=f_evt,
140+
f_hit=f_hit,
141+
f_dsp=f_dsp,
142+
f_tcm=f_tcm,
143+
f_skm=None,
144+
skm_conf=config,
145145
skm_group=f"skm/{key}" if key != "all" else "skm",
146146
evt_group="evt",
147147
tcm_group="hardware_tcm_1",

scripts/util/patterns.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ def get_pattern_tier(setup, tier, check_in_cycle=True):
209209
else:
210210
msg = "invalid tier"
211211
raise Exception(msg)
212-
if tier_path(setup) not in file_pattern and check_in_cycle is True and ".." not in file_pattern:
212+
if (
213+
tier_path(setup) not in file_pattern
214+
and check_in_cycle is True
215+
and ".." not in file_pattern
216+
):
213217
return "/tmp/{experiment}-{period}-{run}-{datatype}-{timestamp}" + f"tier_{tier}.lh5"
214218
else:
215219
return file_pattern
@@ -387,7 +391,11 @@ def get_pattern_pars(setup, tier, name=None, extension="json", check_in_cycle=Tr
387391
else:
388392
msg = "invalid tier"
389393
raise Exception(msg)
390-
if pars_path(setup) not in file_pattern and check_in_cycle is True and ".." not in file_pattern:
394+
if (
395+
pars_path(setup) not in file_pattern
396+
and check_in_cycle is True
397+
and ".." not in file_pattern
398+
):
391399
if name is None:
392400
return "/tmp/{experiment}-{period}-{run}-cal-{timestamp}" + f"par_{tier}.{extension}"
393401
else:

0 commit comments

Comments
 (0)