Skip to content

Commit e721f34

Browse files
committed
#6 Replace file_endswith to check file format in to_awk
1 parent a43e208 commit e721f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

servicex_analysis_utils/materialization.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def to_awk(deliver_dict, dask=False, iterator=False, **kwargs):
5252
for sample, paths in deliver_dict.items():
5353
# Check file type
5454
f_type = str(paths[0])
55-
if f_type.endswith(".root"):
55+
if ".root" in f_type:
5656
is_root = True
57-
elif f_type.endswith(".parquet") or f_type.endswith(".pq"):
57+
elif ".parquet" or ".pq" in f_type:
5858
is_root = False
5959
# ServiceX supports only root/parquet in transformed files
6060
else:

0 commit comments

Comments
 (0)