Skip to content

Commit 013a3a2

Browse files
authored
Merge pull request #99 from sebi06/work_in_progress
Work in progress
2 parents f563476 + d71033c commit 013a3a2

19 files changed

+481
-446
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
matrix:
2626
platform: [ubuntu-latest, windows-latest]
27-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', ]
27+
python-version: ['3.10', '3.11', '3.12', '3.13']
2828

2929
steps:
3030
- uses: actions/checkout@v4

.github/workflows/test_and_deploy_testpypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
matrix:
2727
platform: [ubuntu-latest, windows-latest]
28-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
28+
python-version: ['3.10', '3.11', '3.12', '3.13']
2929

3030
steps:
3131
- uses: actions/checkout@v4

data/S3_1Pos_2Mosaic_T1_Z1_CH1.czi

758 KB
Binary file not shown.

data/w96_A1+A2_planetable.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
;Subblock;S;M;T;C;Z;X[micron];Y[micron];Z[micron];Time[s];xstart;ystart;width;height
2+
0;0;0;0;0;0;0;4261.284;8361.406;683.0;0.0;0;0;1960;1416
3+
1;1;1;0;0;0;0;13293.666;8372.441;683.934;2.376;19758;24;1960;1416

demo/notebooks/omezarr_from_czi_5d.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"name": "stdout",
7171
"output_type": "stream",
7272
"text": [
73-
"ZARR Verion: 3.1.0 NGFF-ZARR Version: 0.15.0\n"
73+
"ZARR Verion: 3.1.1 NGFF-ZARR Version: 0.16.1\n"
7474
]
7575
}
7676
],
@@ -127,7 +127,7 @@
127127
"name": "stdout",
128128
"output_type": "stream",
129129
"text": [
130-
"F:\\Github\\czitools\\data\\CellDivision_T3_Z5_CH2_X240_Y170.ome.zarr\n"
130+
"/datadisk1/Github/czitools/data/CellDivision_T3_Z5_CH2_X240_Y170.ome.zarr\n"
131131
]
132132
}
133133
],
@@ -158,7 +158,7 @@
158158
{
159159
"data": {
160160
"application/vnd.jupyter.widget-view+json": {
161-
"model_id": "c17689de830e4c74b443b5544c3610e5",
161+
"model_id": "b0087b111b7248de9e456bb662f75d3e",
162162
"version_major": 2,
163163
"version_minor": 0
164164
},
@@ -193,7 +193,7 @@
193193
{
194194
"data": {
195195
"application/vnd.jupyter.widget-view+json": {
196-
"model_id": "f9353554723246e2b63c91bc218967ef",
196+
"model_id": "b7a21676cc0c4d659417a073ec8b5822",
197197
"version_major": 2,
198198
"version_minor": 0
199199
},
@@ -207,7 +207,7 @@
207207
{
208208
"data": {
209209
"application/vnd.jupyter.widget-view+json": {
210-
"model_id": "0cb914978813439ea5b96cba2b6d9787",
210+
"model_id": "14a2b4e5d47e4f3c98521409cfb8f130",
211211
"version_major": 2,
212212
"version_minor": 0
213213
},
@@ -235,7 +235,7 @@
235235
},
236236
{
237237
"cell_type": "code",
238-
"execution_count": 10,
238+
"execution_count": 8,
239239
"id": "c670b17c",
240240
"metadata": {},
241241
"outputs": [],
@@ -250,7 +250,7 @@
250250
},
251251
{
252252
"cell_type": "code",
253-
"execution_count": 11,
253+
"execution_count": 9,
254254
"id": "24a93ccf-5cd4-4435-867b-190093bba3cc",
255255
"metadata": {},
256256
"outputs": [],

demo/notebooks/read_czi_metadata.ipynb

Lines changed: 112 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": null,
5+
"execution_count": 1,
66
"metadata": {},
77
"outputs": [],
88
"source": [
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"cell_type": "code",
18-
"execution_count": null,
18+
"execution_count": 2,
1919
"metadata": {},
2020
"outputs": [],
2121
"source": [
@@ -28,7 +28,7 @@
2828
},
2929
{
3030
"cell_type": "code",
31-
"execution_count": null,
31+
"execution_count": 3,
3232
"metadata": {},
3333
"outputs": [],
3434
"source": [
@@ -52,7 +52,7 @@
5252
},
5353
{
5454
"cell_type": "code",
55-
"execution_count": null,
55+
"execution_count": 4,
5656
"metadata": {
5757
"pycharm": {
5858
"name": "#%%\n"
@@ -86,9 +86,24 @@
8686
},
8787
{
8888
"cell_type": "code",
89-
"execution_count": null,
89+
"execution_count": 5,
9090
"metadata": {},
91-
"outputs": [],
91+
"outputs": [
92+
{
93+
"data": {
94+
"application/vnd.jupyter.widget-view+json": {
95+
"model_id": "908516cbc84c4feba61befc923e0459e",
96+
"version_major": 2,
97+
"version_minor": 0
98+
},
99+
"text/plain": [
100+
"FileChooser(path='/datadisk1/Github/czitools/data', filename='', title='', show_hidden=False, select_desc='Sel…"
101+
]
102+
},
103+
"metadata": {},
104+
"output_type": "display_data"
105+
}
106+
],
92107
"source": [
93108
"if not IN_COLAB:\n",
94109
" # choose local file\n",
@@ -110,13 +125,21 @@
110125
},
111126
{
112127
"cell_type": "code",
113-
"execution_count": null,
128+
"execution_count": 6,
114129
"metadata": {
115130
"pycharm": {
116131
"name": "#%%\n"
117132
}
118133
},
119-
"outputs": [],
134+
"outputs": [
135+
{
136+
"name": "stdout",
137+
"output_type": "stream",
138+
"text": [
139+
"Selected File: /datadisk1/Github/czitools/data/w96_A1+A2.czi\n"
140+
]
141+
}
142+
],
120143
"source": [
121144
"if not IN_COLAB:\n",
122145
" filepath = fc.selected\n",
@@ -128,9 +151,22 @@
128151
},
129152
{
130153
"cell_type": "code",
131-
"execution_count": null,
154+
"execution_count": 7,
132155
"metadata": {},
133-
"outputs": [],
156+
"outputs": [
157+
{
158+
"name": "stdout",
159+
"output_type": "stream",
160+
"text": [
161+
"SizeS: 2\n",
162+
"SizeT: None\n",
163+
"SizeZ: None\n",
164+
"SizeC: 2\n",
165+
"SizeY: 1440\n",
166+
"SizeX: 21718\n"
167+
]
168+
}
169+
],
134170
"source": [
135171
"# get only specific metadata\n",
136172
"czi_dimensions = czimd.CziDimensions(filepath)\n",
@@ -144,7 +180,7 @@
144180
},
145181
{
146182
"cell_type": "code",
147-
"execution_count": null,
183+
"execution_count": 8,
148184
"metadata": {},
149185
"outputs": [],
150186
"source": [
@@ -160,9 +196,24 @@
160196
},
161197
{
162198
"cell_type": "code",
163-
"execution_count": null,
199+
"execution_count": 9,
164200
"metadata": {},
165-
"outputs": [],
201+
"outputs": [
202+
{
203+
"data": {
204+
"application/vnd.jupyter.widget-view+json": {
205+
"model_id": "73ee49cd6a0d4e6f9682099239068919",
206+
"version_major": 2,
207+
"version_minor": 0
208+
},
209+
"text/plain": [
210+
"VBox(children=(Output(layout=Layout(height='300px')),))"
211+
]
212+
},
213+
"metadata": {},
214+
"output_type": "display_data"
215+
}
216+
],
166217
"source": [
167218
"# get the complete metadata at once as one big class\n",
168219
"mdata = czimd.CziMetadata(filepath)\n",
@@ -183,9 +234,17 @@
183234
},
184235
{
185236
"cell_type": "code",
186-
"execution_count": null,
237+
"execution_count": 10,
187238
"metadata": {},
188-
"outputs": [],
239+
"outputs": [
240+
{
241+
"name": "stdout",
242+
"output_type": "stream",
243+
"text": [
244+
"XML File written to: /datadisk1/Github/czitools/data/w96_A1+A2_CZI_MetaData.xml\n"
245+
]
246+
}
247+
],
189248
"source": [
190249
"# write XML to disk\n",
191250
"xmlfile = czimd.writexml(filepath)\n",
@@ -194,9 +253,45 @@
194253
},
195254
{
196255
"cell_type": "code",
197-
"execution_count": null,
256+
"execution_count": 11,
198257
"metadata": {},
199-
"outputs": [],
258+
"outputs": [
259+
{
260+
"data": {
261+
"application/vnd.jupyter.widget-view+json": {
262+
"model_id": "4a0b8eebdabc4b0398d7dc59a79132e3",
263+
"version_major": 2,
264+
"version_minor": 0
265+
},
266+
"text/plain": [
267+
"Reading sublocks planes: 0 2Dplanes [00:00, ? 2Dplanes/s]"
268+
]
269+
},
270+
"metadata": {},
271+
"output_type": "display_data"
272+
},
273+
{
274+
"name": "stdout",
275+
"output_type": "stream",
276+
"text": [
277+
"\u001b[32m2025-08-23 19:59:24,011 - czitools - INFO - Planetable saved successfully at: /datadisk1/Github/czitools/data/w96_A1+A2_planetable.csv\u001b[0m\n"
278+
]
279+
},
280+
{
281+
"data": {
282+
"application/vnd.jupyter.widget-view+json": {
283+
"model_id": "0c9fc900a4454598ab504be5ba752c7b",
284+
"version_major": 2,
285+
"version_minor": 0
286+
},
287+
"text/plain": [
288+
"VBox(children=(Output(layout=Layout(height='300px')),))"
289+
]
290+
},
291+
"metadata": {},
292+
"output_type": "display_data"
293+
}
294+
],
200295
"source": [
201296
"# get the planetable for the CZI file\n",
202297
"pt, savepath = misc.get_planetable(filepath,\n",

demo/notebooks/read_czi_metadata_marimo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import marimo
22

3-
__generated_with = "0.14.11"
3+
__generated_with = "0.14.17"
44
app = marimo.App()
55

66

0 commit comments

Comments
 (0)