Skip to content

Commit 193c3e0

Browse files
authored
Fix list making (#99)
1 parent fe8c5cf commit 193c3e0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/scripts/diagnostic_tools/doanalysis.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,8 @@ def build_list_of_files(file_list):
187187
return run_list
188188

189189
if type(input_file) is list:
190-
if batch_size == 1:
191-
input_file_list = os.path.join(os.getcwd(), input_file)
192-
else:
193-
input_file_list = build_list_of_files(input_file)
190+
input_file = [os.path.join(os.getcwd(), i) for i in input_file]
191+
input_file_list = build_list_of_files(input_file)
194192
elif not input_file.endswith(".root"):
195193
with open(input_file, "r") as f:
196194
lines = f.readlines()

0 commit comments

Comments
 (0)