Skip to content

Commit 471b8a9

Browse files
Merge pull request #1331 from datajoint/feature/npy-codec
feat: Add NpyCodec for lazy-loading numpy arrays
2 parents 4f6625b + 58f2b67 commit 471b8a9

27 files changed

+2570
-886
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ dj_local_conf.json
187187
!.vscode/launch.json
188188
# pixi environments
189189
.pixi
190-
_content/
190+
_hash/
191191

192192
# Local config
193193
.secrets/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ check_untyped_defs = true
168168
# Modules with complete type coverage - strict checking enabled
169169
[[tool.mypy.overrides]]
170170
module = [
171-
"datajoint.content_registry",
171+
"datajoint.hash_registry",
172172
"datajoint.errors",
173173
"datajoint.hash",
174174
]

src/datajoint/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,19 @@
4747
"MatStruct",
4848
# Codec API
4949
"Codec",
50+
"SchemaCodec",
5051
"list_codecs",
5152
"get_codec",
53+
"ObjectRef",
54+
"NpyRef",
55+
# Other
5256
"errors",
5357
"migrate",
5458
"DataJointError",
5559
"key",
5660
"key_hash",
5761
"logger",
5862
"cli",
59-
"ObjectRef",
6063
"ValidationResult",
6164
]
6265

@@ -70,6 +73,10 @@
7073
get_codec,
7174
list_codecs,
7275
)
76+
from .builtin_codecs import (
77+
SchemaCodec,
78+
NpyRef,
79+
)
7380
from .blob import MatCell, MatStruct
7481
from .connection import Connection, conn
7582
from .errors import DataJointError

0 commit comments

Comments
 (0)