Skip to content

Commit 1a0174b

Browse files
docs: Use decimal type for human-entered numeric fields
- Change float32 to decimal for weight, duration, frame_rate - Decimal is more appropriate for manually entered values - Float remains for computed values and measurements Affected tutorials: - 01-first-pipeline: duration in Recording - 03-data-entry: duration in Session - 04-queries: weight in Subject, duration in Session - 06-object-storage: frame_rate in ImagingSession Also fixes: - PostgreSQL boolean aggregation (sum(correct) -> CASE WHEN) - PostgreSQL string quoting (double -> single quotes) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7bce685 commit 1a0174b

21 files changed

Lines changed: 2472 additions & 2480 deletions

src/how-to/model-relationships.ipynb

Lines changed: 219 additions & 219 deletions
Large diffs are not rendered by default.

src/how-to/read-diagrams.ipynb

Lines changed: 109 additions & 109 deletions
Large diffs are not rendered by default.

src/tutorials/advanced/custom-codecs.ipynb

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@
2020
"id": "cell-1",
2121
"metadata": {
2222
"execution": {
23-
"iopub.execute_input": "2026-01-23T05:08:53.523460Z",
24-
"iopub.status.busy": "2026-01-23T05:08:53.523358Z",
25-
"iopub.status.idle": "2026-01-23T05:08:54.450994Z",
26-
"shell.execute_reply": "2026-01-23T05:08:54.450645Z"
23+
"iopub.execute_input": "2026-01-23T15:25:09.917280Z",
24+
"iopub.status.busy": "2026-01-23T15:25:09.917158Z",
25+
"iopub.status.idle": "2026-01-23T15:25:10.852465Z",
26+
"shell.execute_reply": "2026-01-23T15:25:10.852185Z"
2727
}
2828
},
2929
"outputs": [
3030
{
3131
"name": "stderr",
3232
"output_type": "stream",
3333
"text": [
34-
"[2026-01-22 23:08:54,443][INFO]: DataJoint 2.1.0a5 connected to postgres@localhost:5432\n"
34+
"[2026-01-23 09:25:10,844][INFO]: DataJoint 2.1.0a5 connected to postgres@localhost:5432\n"
3535
]
3636
}
3737
],
@@ -56,10 +56,10 @@
5656
"id": "cell-3",
5757
"metadata": {
5858
"execution": {
59-
"iopub.execute_input": "2026-01-23T05:08:54.452930Z",
60-
"iopub.status.busy": "2026-01-23T05:08:54.452699Z",
61-
"iopub.status.idle": "2026-01-23T05:08:54.455491Z",
62-
"shell.execute_reply": "2026-01-23T05:08:54.455248Z"
59+
"iopub.execute_input": "2026-01-23T15:25:10.854285Z",
60+
"iopub.status.busy": "2026-01-23T15:25:10.854079Z",
61+
"iopub.status.idle": "2026-01-23T15:25:10.857123Z",
62+
"shell.execute_reply": "2026-01-23T15:25:10.856845Z"
6363
}
6464
},
6565
"outputs": [],
@@ -94,10 +94,10 @@
9494
"id": "cell-4",
9595
"metadata": {
9696
"execution": {
97-
"iopub.execute_input": "2026-01-23T05:08:54.456757Z",
98-
"iopub.status.busy": "2026-01-23T05:08:54.456647Z",
99-
"iopub.status.idle": "2026-01-23T05:08:54.476357Z",
100-
"shell.execute_reply": "2026-01-23T05:08:54.476057Z"
97+
"iopub.execute_input": "2026-01-23T15:25:10.858558Z",
98+
"iopub.status.busy": "2026-01-23T15:25:10.858446Z",
99+
"iopub.status.idle": "2026-01-23T15:25:10.876981Z",
100+
"shell.execute_reply": "2026-01-23T15:25:10.876637Z"
101101
}
102102
},
103103
"outputs": [],
@@ -117,10 +117,10 @@
117117
"id": "cell-5",
118118
"metadata": {
119119
"execution": {
120-
"iopub.execute_input": "2026-01-23T05:08:54.478343Z",
121-
"iopub.status.busy": "2026-01-23T05:08:54.478193Z",
122-
"iopub.status.idle": "2026-01-23T05:08:54.490438Z",
123-
"shell.execute_reply": "2026-01-23T05:08:54.490133Z"
120+
"iopub.execute_input": "2026-01-23T15:25:10.878663Z",
121+
"iopub.status.busy": "2026-01-23T15:25:10.878517Z",
122+
"iopub.status.idle": "2026-01-23T15:25:10.889496Z",
123+
"shell.execute_reply": "2026-01-23T15:25:10.889022Z"
124124
}
125125
},
126126
"outputs": [
@@ -184,10 +184,10 @@
184184
"id": "cell-8",
185185
"metadata": {
186186
"execution": {
187-
"iopub.execute_input": "2026-01-23T05:08:54.492077Z",
188-
"iopub.status.busy": "2026-01-23T05:08:54.491947Z",
189-
"iopub.status.idle": "2026-01-23T05:08:54.494724Z",
190-
"shell.execute_reply": "2026-01-23T05:08:54.494508Z"
187+
"iopub.execute_input": "2026-01-23T15:25:10.891212Z",
188+
"iopub.status.busy": "2026-01-23T15:25:10.891079Z",
189+
"iopub.status.idle": "2026-01-23T15:25:10.893797Z",
190+
"shell.execute_reply": "2026-01-23T15:25:10.893584Z"
191191
}
192192
},
193193
"outputs": [],
@@ -219,10 +219,10 @@
219219
"id": "cell-9",
220220
"metadata": {
221221
"execution": {
222-
"iopub.execute_input": "2026-01-23T05:08:54.496162Z",
223-
"iopub.status.busy": "2026-01-23T05:08:54.496035Z",
224-
"iopub.status.idle": "2026-01-23T05:08:54.512198Z",
225-
"shell.execute_reply": "2026-01-23T05:08:54.511935Z"
222+
"iopub.execute_input": "2026-01-23T15:25:10.895290Z",
223+
"iopub.status.busy": "2026-01-23T15:25:10.895070Z",
224+
"iopub.status.idle": "2026-01-23T15:25:10.910255Z",
225+
"shell.execute_reply": "2026-01-23T15:25:10.909992Z"
226226
}
227227
},
228228
"outputs": [
@@ -256,10 +256,10 @@
256256
"id": "cell-10",
257257
"metadata": {
258258
"execution": {
259-
"iopub.execute_input": "2026-01-23T05:08:54.513489Z",
260-
"iopub.status.busy": "2026-01-23T05:08:54.513360Z",
261-
"iopub.status.idle": "2026-01-23T05:08:54.516812Z",
262-
"shell.execute_reply": "2026-01-23T05:08:54.516563Z"
259+
"iopub.execute_input": "2026-01-23T15:25:10.911546Z",
260+
"iopub.status.busy": "2026-01-23T15:25:10.911463Z",
261+
"iopub.status.idle": "2026-01-23T15:25:10.914976Z",
262+
"shell.execute_reply": "2026-01-23T15:25:10.914676Z"
263263
}
264264
},
265265
"outputs": [],

0 commit comments

Comments
 (0)