Merge branch 'main' of ssh://892887cvmk08.aicp.io:24928/orisys-tech/orisys-app

This commit is contained in:
ykcheungab
2026-10-10 14:16:03 +08:00
parent f5ba64e01a
commit cf86bd0702
14 changed files with 118 additions and 4 deletions
+3
View File
@@ -474,6 +474,7 @@ def test_the_display_settings_round_trip():
flow_grid_spacing=12,
max_arrows=250,
depth_scale_adaptive=True,
depth_threshold=0.025,
color_scale=ColorScale(
descriptor=FieldDescriptor("flow_magnitude", "px", "approximate", False),
lower=0.25,
@@ -497,7 +498,9 @@ def test_the_display_settings_round_trip():
assert (restored.color_scale.lower, restored.color_scale.upper) == (0.25, 4.5)
assert restored.color_scale.mode == "fixed"
assert restored.depth_scale_adaptive is True
assert restored.depth_threshold == 0.025
assert scene3d_prefs.settings_from_prefs({}).depth_scale_adaptive is False
assert scene3d_prefs.settings_from_prefs({"depth_threshold": -1}).depth_threshold == 0.0
def test_a_saved_descriptor_is_never_restored_as_a_measurement():