Skip to content

Commit 5db3359

Browse files
docs: Use uint16 instead of native int in codec examples
Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 90e5c17 commit 5db3359

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.secrets/database.password

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tutorial

.secrets/database.user

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
root

datajoint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"database": {
3+
"host": "127.0.0.1",
4+
"port": 3306
5+
},
6+
"safemode": false,
7+
"loglevel": "WARNING"
8+
}

src/datajoint/codecs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def decode(self, stored, *, key=None):
2727
# Then use in table definitions:
2828
class MyTable(dj.Manual):
2929
definition = '''
30-
id : int
30+
id : uint16
3131
---
3232
data : <graph>
3333
'''
@@ -81,7 +81,7 @@ class Codec(ABC):
8181
8282
class Connectivity(dj.Manual):
8383
definition = '''
84-
id : int
84+
id : uint16
8585
---
8686
graph_data : <graph>
8787
'''

0 commit comments

Comments
 (0)