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 1212import numpy as np
1313from .errors import DataJointError
1414from .utils import OrderedDict
15+ from .settings import config
1516
1617
1718mxClassID = OrderedDict ((
@@ -71,6 +72,9 @@ def __init__(self, squeeze=False):
7172 self .protocol = None
7273
7374 def set_dj0 (self ):
75+ if not config .get ('enable_python_native_blobs' ):
76+ raise DataJointError ('v0.12+ python native blobs disabled. see also: https://github.com/datajoint/datajoint-python/blob/master/README.md' )
77+
7478 self .protocol = b"dj0\0 " # when using new blob features
7579
7680 def squeeze (self , array , convert_to_scalar = True ):
Original file line number Diff line number Diff line change 4343 'display.limit' : 12 ,
4444 'display.width' : 14 ,
4545 'display.show_tuple_count' : True ,
46- 'database.use_tls' : None
46+ 'database.use_tls' : None ,
47+ 'enable_python_native_blobs' : False , # python-native/dj0 encoding support
4748})
4849
4950logger = logging .getLogger (__name__ )
You can’t perform that action at this time.
0 commit comments