Skip to content

Commit 7c97f98

Browse files
committed
fix syntax error and remove useless ".bp5" extension from supported list. Only ".bp" matters.
1 parent 65e8b22 commit 7c97f98

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/boutdata/collect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ def findFiles(path, prefix):
11821182
prefix = prefix[:-1]
11831183

11841184
# Look for parallel dump files
1185-
suffixes = [".nc", ".ncdf", ".cdl", ".h5", ".hdf5", ".hdf", ".bp", ".bp5"]
1185+
suffixes = [".nc", ".ncdf", ".cdl", ".h5", ".hdf5", ".hdf", ".bp"]
11861186
file_list_parallel = None
11871187
suffix_parallel = ""
11881188
for test_suffix in suffixes:

src/boututils/datafile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(
103103
self.impl = DataFile_HDF5(
104104
filename=filename, write=write, create=create, format=format
105105
)
106-
elif filename.split(".")[-1] in ("bp", "bp5"):
106+
elif filename.split(".")[-1] in ("bp"):
107107
self.impl = DataFile_ADIOS2(
108108
filename=filename, write=write, create=create, format=format
109109
)
@@ -119,7 +119,7 @@ def __init__(
119119
self.impl = DataFile_HDF5(
120120
filename=filename, write=write, create=create, format=format
121121
)
122-
elif format.lower().startswith() == "adios":
122+
elif format.lower().startswith("adios"):
123123
self.impl = DataFile_ADIOS2(
124124
filename=filename, write=write, create=create, format=format
125125
)

0 commit comments

Comments
 (0)