Skip to content

Commit 6c8745e

Browse files
committed
update comment and tests
1 parent b2eaf2f commit 6c8745e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

datajoint/blob.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@
4343
}
4444

4545
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
4750

4851

4952
def len_u64(obj):

tests/test_blob.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def test_insert_longblob():
152152
"0023000000410200000001000000070000000400000000000000640064006400640064006400640025"
153153
"00000041020000000100000008000000040000000000000053007400610067006500200031003000')")
154154
dj.conn().query(query_32_blob).fetchall()
155+
dj.blob.use_32bit_dims = True
155156
assert (schema.Longblob & 'id=1').fetch1() == {
156157
'id': 1, 'data':
157158
np.rec.array(
@@ -167,4 +168,4 @@ def test_insert_longblob():
167168
)
168169
}
169170
(schema.Longblob & 'id=1').delete()
170-
171+
dj.blob.use_32bit_dims = False

0 commit comments

Comments
 (0)