We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6521d commit 0b77402Copy full SHA for 0b77402
wkcuber/knossos.py
@@ -37,7 +37,9 @@ def read_cube(self, cube_xyz):
37
cube_data = np.fromfile(cube_file, dtype=self.dtype)
38
if cube_data.size != CUBE_SIZE:
39
padded_data = np.zeros(CUBE_SIZE, dtype=self.dtype)
40
- padded_data[0 : min(cube_data.size, CUBE_SIZE)] = cube_data
+ padded_data[0 : min(cube_data.size, CUBE_SIZE)] = cube_data[
41
+ 0 : min(cube_data.size, CUBE_SIZE)
42
+ ]
43
cube_data = padded_data
44
cube_data = cube_data.reshape(CUBE_SHAPE, order="F")
45
return cube_data
0 commit comments