Skip to content

Commit 89d620e

Browse files
Zarr v3 Engine (#530)
* correct typo in cli doc * fix type hint for None storage opts * zarr v3 dependency * zarr v3 support * Update type annotations for create_zarr_hierarchy method * remove memory cache usage * update api usage * use cloud segy in quickstart * Fix writer usage and make rechunk work with v3 * update notebooks * fix bug in copy * remove duplicate zarr dependency Co-authored-by: Brian Michell <brianm314@comcast.net> * remove notebook * add convenience test file to vcs * Remove unused API version retrieval logic. * Refactor function signatures by removing unused parameters. * Refine docstring in SEG-Y to MDIO conversion function * Refactor header dtype initialization in factory.py * test only full copy in integration * Add warning filter to suppress chunk size balancing warnings * use more readable expression Co-authored-by: Brian Michell <brianm314@comcast.net> --------- Co-authored-by: Brian Michell <brianm314@comcast.net>
1 parent 7a8b751 commit 89d620e

25 files changed

+685
-1096
lines changed

.github/workflows/tests.yml

-3
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@ jobs:
1717
# - { python: "3.13", os: "ubuntu-latest", session: "mypy" }
1818
# - { python: "3.12", os: "ubuntu-latest", session: "mypy" }
1919
# - { python: "3.11", os: "ubuntu-latest", session: "mypy" }
20-
# - { python: "3.10", os: "ubuntu-latest", session: "mypy" }
2120
- { python: "3.13", os: "ubuntu-latest", session: "tests" }
2221
- { python: "3.12", os: "ubuntu-latest", session: "tests" }
2322
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
24-
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
2523
- { python: "3.13", os: "windows-latest", session: "tests" }
2624
- { python: "3.13", os: "macos-latest", session: "tests" }
2725
# - { python: "3.13", os: "ubuntu-latest", session: "typeguard" }
2826
# - { python: "3.12", os: "ubuntu-latest", session: "typeguard" }
2927
# - { python: "3.11", os: "ubuntu-latest", session: "typeguard" }
30-
# - { python: "3.10", os: "ubuntu-latest", session: "typeguard" }
3128
# - { python: "3.13", os: "ubuntu-latest", session: "xdoctest" }
3229
- { python: "3.13", os: "ubuntu-latest", session: "docs-build" }
3330

docs/notebooks/creation.ipynb

+27-20
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"name": "#%%\n"
2828
},
2929
"ExecuteTime": {
30-
"end_time": "2025-04-10T23:01:13.251380Z",
31-
"start_time": "2025-04-10T23:01:13.249206Z"
30+
"end_time": "2025-04-16T14:50:04.371422Z",
31+
"start_time": "2025-04-16T14:50:04.368107Z"
3232
}
3333
},
3434
"source": [
@@ -75,8 +75,8 @@
7575
"name": "#%%\n"
7676
},
7777
"ExecuteTime": {
78-
"end_time": "2025-04-10T23:01:15.001483Z",
79-
"start_time": "2025-04-10T23:01:14.852174Z"
78+
"end_time": "2025-04-16T14:50:06.121450Z",
79+
"start_time": "2025-04-16T14:50:06.002634Z"
8080
}
8181
},
8282
"source": [
@@ -94,7 +94,7 @@
9494
" name=\"chunked_012\",\n",
9595
" dtype=\"float32\",\n",
9696
" chunks=(128, 128, 128),\n",
97-
" compressor=compressor,\n",
97+
" compressors=compressor,\n",
9898
" header_dtype=header_dtype,\n",
9999
")\n",
100100
"\n",
@@ -127,8 +127,8 @@
127127
"name": "#%%\n"
128128
},
129129
"ExecuteTime": {
130-
"end_time": "2025-04-10T23:01:20.800890Z",
131-
"start_time": "2025-04-10T23:01:20.755989Z"
130+
"end_time": "2025-04-16T14:50:09.974442Z",
131+
"start_time": "2025-04-16T14:50:09.951257Z"
132132
}
133133
},
134134
"source": [
@@ -147,7 +147,7 @@
147147
" 'C03 ',\n",
148148
" 'C04 '],\n",
149149
" {},\n",
150-
" {'rms': 0, 'max': 0, 'mean': 0, 'std': 0, 'min': 0})"
150+
" {'rms': 0, 'min': 0, 'mean': 0, 'max': 0, 'std': 0})"
151151
]
152152
},
153153
"execution_count": 4,
@@ -181,13 +181,13 @@
181181
"name": "#%%\n"
182182
},
183183
"ExecuteTime": {
184-
"end_time": "2025-04-10T23:01:22.957564Z",
185-
"start_time": "2025-04-10T23:01:22.431939Z"
184+
"end_time": "2025-04-16T14:50:12.498287Z",
185+
"start_time": "2025-04-16T14:50:11.670230Z"
186186
}
187187
},
188188
"source": [
189189
"sample_dim = writer.grid.select_dim(\"sample\")\n",
190-
"sample_interval = sample_dim.coords[1] - sample_dim.coords[0]\n",
190+
"sample_interval = int(sample_dim.coords[1] - sample_dim.coords[0])\n",
191191
"num_samples = sample_dim.size\n",
192192
"writer.binary_header = {\n",
193193
" \"data_sample_format\": 1,\n",
@@ -218,7 +218,7 @@
218218
" 'samples_per_trace': 750,\n",
219219
" 'segy_revision_major': 1,\n",
220220
" 'segy_revision_minor': 0},\n",
221-
" {'rms': 3, 'max': 4, 'mean': 12, 'std': 5, 'min': -4})"
221+
" {'rms': 3, 'min': -4, 'mean': 12, 'max': 4, 'std': 5})"
222222
]
223223
},
224224
"execution_count": 5,
@@ -237,8 +237,8 @@
237237
"cell_type": "code",
238238
"metadata": {
239239
"ExecuteTime": {
240-
"end_time": "2025-04-10T23:01:24.496155Z",
241-
"start_time": "2025-04-10T23:01:24.214141Z"
240+
"end_time": "2025-04-16T14:50:14.256953Z",
241+
"start_time": "2025-04-16T14:50:14.036094Z"
242242
}
243243
},
244244
"source": [
@@ -279,8 +279,8 @@
279279
"cell_type": "code",
280280
"metadata": {
281281
"ExecuteTime": {
282-
"end_time": "2025-04-10T23:01:28.673420Z",
283-
"start_time": "2025-04-10T23:01:26.174688Z"
282+
"end_time": "2025-04-16T14:50:15.788812Z",
283+
"start_time": "2025-04-16T14:50:15.009889Z"
284284
}
285285
},
286286
"source": [
@@ -298,8 +298,8 @@
298298
"name": "stderr",
299299
"output_type": "stream",
300300
"text": [
301-
"Unwrapping MDIO Blocks: 100%|██████████| 7/7 [00:02<00:00, 2.99it/s]\n",
302-
"Merging lines: 100%|██████████| 1/1 [00:00<00:00, 24.22it/s]"
301+
"Unwrapping MDIO Blocks: 100%|██████████| 7/7 [00:00<00:00, 10.55it/s]\n",
302+
"Merging lines: 100%|██████████| 1/1 [00:00<00:00, 17.26it/s]"
303303
]
304304
},
305305
{
@@ -351,8 +351,8 @@
351351
{
352352
"metadata": {
353353
"ExecuteTime": {
354-
"end_time": "2025-04-10T23:01:30.367161Z",
355-
"start_time": "2025-04-10T23:01:30.229117Z"
354+
"end_time": "2025-04-16T14:50:17.246513Z",
355+
"start_time": "2025-04-16T14:50:17.111779Z"
356356
}
357357
},
358358
"cell_type": "code",
@@ -369,6 +369,13 @@
369369
],
370370
"outputs": [],
371371
"execution_count": 8
372+
},
373+
{
374+
"metadata": {},
375+
"cell_type": "code",
376+
"outputs": [],
377+
"execution_count": null,
378+
"source": ""
372379
}
373380
],
374381
"metadata": {

0 commit comments

Comments
 (0)