Skip to content

Commit 4e13147

Browse files
committed
demo: fix image titles and other details
1 parent 47a4392 commit 4e13147

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cdl/tests/scenarios/demo.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def test_image_features(win: CDLMainWindow, data_size: int = 512) -> None:
142142
param.mode = boundary
143143
panel.processor.compute_rotate(param)
144144

145+
newparam.title = None
145146
ima1 = create_test_image_with_roi(newparam)
146147
panel.add_object(ima1)
147148

@@ -155,6 +156,7 @@ def test_image_features(win: CDLMainWindow, data_size: int = 512) -> None:
155156

156157
qt_wait(DELAY2)
157158

159+
newparam.title = None
158160
ima = create_peak2d_image(newparam)
159161
panel.add_object(ima)
160162
param = dlp.Peak2DDetectionParam.create(create_rois=True)
@@ -167,7 +169,10 @@ def test_image_features(win: CDLMainWindow, data_size: int = 512) -> None:
167169

168170
qt_wait(DELAY2)
169171

170-
panel.processor.compute_roi_extraction()
172+
n = data_size // 10
173+
panel.processor.compute_roi_extraction(
174+
dlp.ROIDataParam.create(roidata=[[n, n, data_size - n, data_size - n]])
175+
)
171176

172177

173178
def play_demo(win: CDLMainWindow) -> None:

0 commit comments

Comments
 (0)