Skip to content

Commit 3e6a4d4

Browse files
committed
Fix typo
1 parent 1b1a5eb commit 3e6a4d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pysplashsurf/pysplashsurf/bgeo.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,24 @@ def readbgeo_to_meshio(filepath):
6262
particle_size += size
6363

6464
byte = file.read(4)
65-
houdni_type = int.from_bytes(byte, byteorder="big")
66-
if houdni_type == 0:
65+
input_dtype = int.from_bytes(byte, byteorder="big")
66+
if input_dtype == 0:
6767
point_attributes_types.append('FLOAT')
6868
# read default value
6969
# not going to do anything about it
7070
byte = file.read(size * 4)
71-
elif houdni_type == 1:
71+
elif input_dtype == 1:
7272
point_attributes_types.append('INT')
7373
# read default value
7474
# not going to do anything about it
7575
byte = file.read(size * 4)
76-
elif houdni_type == 5:
76+
elif input_dtype == 5:
7777
point_attributes_types.append('VECTOR')
7878
# read default value
7979
# not going to do anything about it
8080
byte = file.read(size * 4)
8181
else:
82-
raise Exception('houdni_type unknown/ unsupported')
82+
raise Exception('input_dtype unknown/unsupported')
8383
byte = file.read(particle_size * header['nPoints'] * 4)
8484
# > means big endian
8585
attribute_data = np.frombuffer(byte, dtype='>f')

0 commit comments

Comments
 (0)