You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,10 @@ Some Python datatypes such as dicts were coerced into numpy recarrays and then f
32
32
However, since some Python types were coerced into MATLAB types, old blobs and new blobs may now be fetched as different types of objects even if they were inserted the same way.
33
33
For example, new `dict` objects will be returned as `dict` while the same types of objects inserted with `datajoint 0.11` will be recarrays.
34
34
35
-
Since this is a big change, we chose to disable full blob support by default as a temporary precaution, which will be removed in version 0.13.
35
+
Since this is a big change, we chose to temporarily disable this feature by default in DataJoint for Python 0.12.x, allowing users to adjust their code if necessary.
36
+
From 13.x, the flag will default to True (on), and will ultimately be removed when corresponding decode support for the new format is added to datajoint-matlab (see: datajoint-matlab #222, datajoint-python #765).
36
37
37
-
You may enable it by setting the `enable_python_native_blobs` flag in `dj.config`.
38
+
The flag is configured by setting the `enable_python_native_blobs` flag in `dj.config`.
38
39
39
40
```python
40
41
import datajoint as dj
@@ -68,7 +69,7 @@ as structured arrays, whereas new record inserted in DataJoint 0.12 with
68
69
appropriate native python type (dict, etc).
69
70
Furthermore, DataJoint for MATLAB does not yet support unpacking native Python datatypes.
70
71
71
-
With `dj.config["enable_python_native_blobs"]` set to `False` (default),
72
+
With `dj.config["enable_python_native_blobs"]` set to `False`,
72
73
any attempt to insert any datatype other than a numpy array will result in an exception.
73
74
This is meant to get users to read this message in order to allow proper testing
74
75
and migration of pre-0.12 pipelines to 0.12 in a safe manner.
0 commit comments