Skip to content

Commit 4435058

Browse files
committed
removed is_32_bit param and renamed table
1 parent 34ca201 commit 4435058

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

datajoint/blob.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ class MatStruct(np.recarray):
6464

6565

6666
class Blob:
67-
def __init__(self, squeeze=False, is_32_bit = False):
67+
def __init__(self, squeeze=False):
6868
self._squeeze = squeeze
6969
self._blob = None
7070
self._pos = 0
7171
self._pos_prev = 0
7272
self.protocol = None
73-
self.is_32_bit = is_32_bit
73+
self.is_32_bit = False
7474

7575
def set_dj0(self):
7676
if not config.get('enable_python_native_blobs'):

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
__author__ = 'Edgar Walker, Fabian Sinz, Dimitri Yatsenko, Raphael Guzman'
2121

2222
# turn on verbose logging
23-
#logging.basicConfig(level=logging.DEBUG)
23+
logging.basicConfig(level=logging.DEBUG)
2424

2525
__all__ = ['__author__', 'PREFIX', 'CONN_INFO']
2626

tests/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ class Stimulus(dj.Lookup):
452452

453453

454454
@schema
455-
class Testmym(dj.Manual):
455+
class Longblob(dj.Manual):
456456
definition = """
457457
id: int
458458
---

tests/test_blob.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_complex():
134134

135135

136136
def test_insert_longblob():
137-
query = ("INSERT INTO djtest_test1.testmym (id, data) VALUES (1, "
137+
query = ("INSERT INTO djtest_test1.longblob (id, data) VALUES (1, "
138138
"X'6D596D00530200000001000000010000000400000068697473007369646573007461736B73007374"
139139
"616765004D000000410200000001000000070000000600000000000000000000000000F8FF00000000"
140140
"0000F03F000000000000F03F0000000000000000000000000000F03F00000000000000000000000000"
@@ -149,4 +149,4 @@ def test_insert_longblob():
149149
np.array(['ddddddd'], dtype='<U7'),
150150
np.array(['Stage 10'], dtype='<U8'))]],
151151
dtype=[('hits', 'O'), ('sides', 'O'), ('tasks', 'O'), ('stage', 'O')])}
152-
assert (schema.Testmym & 'id=1').fetch1() == data_32
152+
assert (schema.Longblob & 'id=1').fetch1() == data_32

0 commit comments

Comments
 (0)