Skip to content

Commit 44c1529

Browse files
committed
Fix bug in segment line cross section computation for masked images
1 parent 800de5d commit 44c1529

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog #
22

3-
## Version 2.6.0 ##
3+
## Version 2.6.1 ##
4+
5+
ℹ️ Release V2.6.0 was a fugitive release that was replaced by V2.6.1 due to a critical bug in the segment line cross section computation for masked images.
46

57
💥 New features / Enhancements:
68

plotpy/panels/csection/csitem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def compute_line_section(
481481
line[0, :] = np.linspace(row0, row1, line.shape[1]).astype(int)
482482
line[1, :] = np.linspace(col0, col1, line.shape[1]).astype(int)
483483
# Interpolate the line
484-
y = np.ma.array(data[line[0], line[1]]).filled(np.nan)
484+
y = np.ma.array(data[line[0], line[1]], float).filled(np.nan)
485485
x = np.arange(y.size)
486486
return x, y
487487

0 commit comments

Comments
 (0)