File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ impl Default for StorageProperties {
129
129
filename : Default :: default ( ) ,
130
130
external_metadata_json : Default :: default ( ) ,
131
131
first_frame_id : Default :: default ( ) ,
132
- pixel_scale_um : Default :: default ( ) ,
132
+ pixel_scale_um : ( 1. , 1. ) , // Default to 1.0 um/pixel (square pixels)
133
133
acquisition_dimensions : Default :: default ( ) ,
134
134
enable_multiscale : Default :: default ( ) ,
135
135
}
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ def test_set():
32
32
assert t .enable
33
33
34
34
35
+ def test_storage_properties_pixel_scale_defaults_to_1 ():
36
+ storage = acquire .StorageProperties ()
37
+ assert storage .pixel_scale_um == (1.0 , 1.0 )
38
+
39
+
35
40
def test_list_devices (runtime : Runtime ):
36
41
dm = runtime .device_manager ()
37
42
for d in dm .devices ():
You can’t perform that action at this time.
0 commit comments