File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 43
43
}
44
44
45
45
bypass_serialization = False # runtime setting to bypass blob (en|de)code
46
- use_32bit_dims = False # runtime setting to read data as 32-bit
46
+
47
+ # runtime setting to read integers as 32-bit to read blobs created by the 32-bit
48
+ # version of the mYm library for MATLAB
49
+ use_32bit_dims = False
47
50
48
51
49
52
def len_u64 (obj ):
Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ def test_insert_longblob():
152
152
"0023000000410200000001000000070000000400000000000000640064006400640064006400640025"
153
153
"00000041020000000100000008000000040000000000000053007400610067006500200031003000')" )
154
154
dj .conn ().query (query_32_blob ).fetchall ()
155
+ dj .blob .use_32bit_dims = True
155
156
assert (schema .Longblob & 'id=1' ).fetch1 () == {
156
157
'id' : 1 , 'data' :
157
158
np .rec .array (
@@ -167,4 +168,4 @@ def test_insert_longblob():
167
168
)
168
169
}
169
170
(schema .Longblob & 'id=1' ).delete ()
170
-
171
+ dj . blob . use_32bit_dims = False
You can’t perform that action at this time.
0 commit comments