Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Nov 5, 2024
1 parent 9f25ea3 commit 5f40d4e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pytools/vtk_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,19 @@ def _load_header(self, fh, geometry=None):
native_name, native_dim = (d.split()[0], int(d.split()[2]))
self.native_coords[native_name] = np.fromfile(fh, dtype=dt, count=native_dim)
elif d.startswith("X2L_NATIVE_COORDINATES"):
native_name, native_dim = (d.split()[0], int(d.split()[2]))
native_name, native_dim = (d.split()[0], int(d.split()[2]))
self.native_coords[native_name] = np.fromfile(fh, dtype=dt, count=native_dim)
elif d.startswith("X3L_NATIVE_COORDINATES"):
native_name, native_dim = (d.split()[0], int(d.split()[2]))
native_name, native_dim = (d.split()[0], int(d.split()[2]))
self.native_coords[native_name] = np.fromfile(fh, dtype=dt, count=native_dim)
elif d.startswith("X1C_NATIVE_COORDINATES"):
native_name, native_dim = (d.split()[0], int(d.split()[2]))
native_name, native_dim = (d.split()[0], int(d.split()[2]))
self.native_coords[native_name] = np.fromfile(fh, dtype=dt, count=native_dim)
elif d.startswith("X2C_NATIVE_COORDINATES"):
native_name, native_dim = (d.split()[0], int(d.split()[2]))
native_name, native_dim = (d.split()[0], int(d.split()[2]))
self.native_coords[native_name] = np.fromfile(fh, dtype=dt, count=native_dim)
elif d.startswith("X3C_NATIVE_COORDINATES"):
native_name, native_dim = (d.split()[0], int(d.split()[2]))
native_name, native_dim = (d.split()[0], int(d.split()[2]))
self.native_coords[native_name] = np.fromfile(fh, dtype=dt, count=native_dim)
else:
warnings.warn("Found unknown field %s" % d)
Expand Down

0 comments on commit 5f40d4e

Please sign in to comment.