Skip to content

Commit 8aaccaf

Browse files
committed
Bugfixes
1 parent cd96ccf commit 8aaccaf

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.16.4
2+
- Fixed wrongful designation of stepheight parameters as batch operations instead of parameters
3+
- Fixed orientation of 3d plot (thanks to juanmigueltiscar)
14
## v0.16.3
25
- Fixed decode error for vk4 files with encodings other than utf-8
36
- Changed default parameter for encoding to 'auto'

surfalize/plotting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def plot_3d(surface, vertical_angle=50, horizontal_angle=0, zoom=1, cmap='jet',
103103
surface.step_y / factor)
104104

105105
# Generate a grid of x, y values
106-
x = np.flip(np.linspace(0, surface.width_um, surface.size.x))
107-
y = np.linspace(0, surface.height_um, surface.size.y)
106+
x = np.linspace(0, surface.width_um, surface.size.x)
107+
y = np.flip(np.linspace(0, surface.height_um, surface.size.y))
108108
x, y = np.meshgrid(x, y)
109109

110110
# Define a mathematical function for z values

surfalize/surface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ def _stepheight_get_upper_lower_median(self):
12071207
lower_median = np.median(self.data[~mask])
12081208
return upper_median, lower_median
12091209

1210-
@batch_method('operation')
1210+
@batch_method('parameter')
12111211
@cache
12121212
def stepheight(self):
12131213
"""
@@ -1221,7 +1221,7 @@ def stepheight(self):
12211221
step_height = upper_median - lower_median
12221222
return step_height
12231223

1224-
@batch_method('operation')
1224+
@batch_method('parameter')
12251225
def cavity_volume(self, threshold=0.50):
12261226
"""
12271227
Calculates the cavity volume of a flat surface containing an ablation crater with a leveled bottom plane.

0 commit comments

Comments
 (0)