SharpMeow commited on
Commit
9cbb7ec
路
verified 路
1 Parent(s): 9aab612

Twelve new Lasagnetta datasets and a decluttered Every field page (Scrolls main d8ed50e, PR #300)

Browse files
Files changed (3) hide show
  1. README.md +14 -2
  2. fields.json +252 -0
  3. guide/index.html +329 -245
README.md CHANGED
@@ -37,6 +37,18 @@ datasets:
37
  - SharpMeow/pherc0814-20250804134230-lasagnetta
38
  - SharpMeow/pherc0814-20260521123630-lasagnetta
39
  - SharpMeow/pherc0841-20260319124803-lasagnetta
 
 
 
 
 
 
 
 
 
 
 
 
40
  - SharpMeow/vesuvius-center-lines
41
  tags:
42
  - vesuvius-challenge
@@ -53,10 +65,10 @@ tags:
53
  The **lasagna field** for Herculaneum scroll CT, two ways:
54
 
55
  - **Every field, by scroll**: whole-scan fields for 24 scrolls in one list, each with its volume, voxel size,
56
- model, size and link (`fields.json`). Seven are villa's own fields in the Vesuvius Challenge open data. Twenty-two
57
  are public datasets made here for scans that had none: twelve with villa's lasagna model, among them ten that
58
  also stream from a bucket (PHerc0175A, PHerc0175B, PHerc0306B, PHerc0483A, PHerc0483B, PHerc0490A, PHerc0490B,
59
- PHerc0841, PHerc0846A and PHerc0846B), and ten with [Lasagnetta](https://huggingface.co/SharpMeow/lasagnetta)
60
  0.1.1, a faster copy of it.
61
  - **Make a field** for any box of any public scan: pick a scan and a point, and the Space runs villa's own lasagna
62
  model there on ZeroGPU, checks the result against the field the open data already publishes for that scan, and
 
37
  - SharpMeow/pherc0814-20250804134230-lasagnetta
38
  - SharpMeow/pherc0814-20260521123630-lasagnetta
39
  - SharpMeow/pherc0841-20260319124803-lasagnetta
40
+ - SharpMeow/pherc0139-20250728140407-lasagnetta
41
+ - SharpMeow/pherc0139-20250820105138-lasagnetta
42
+ - SharpMeow/pherc0139-20250822062710-lasagnetta
43
+ - SharpMeow/pherc0139-20251107132835-lasagnetta
44
+ - SharpMeow/pherc0139-20251107135911-lasagnetta
45
+ - SharpMeow/pherc0139-20260319133050-lasagnetta
46
+ - SharpMeow/pherc0139-20260319133554-lasagnetta
47
+ - SharpMeow/pherc0139-20260413113053-lasagnetta
48
+ - SharpMeow/pherc0139-20260930100252-lasagnetta
49
+ - SharpMeow/pherc0172-20241024131839-lasagnetta
50
+ - SharpMeow/pherc1667-20260323082859-lasagnetta
51
+ - SharpMeow/phercmanbp-20260427100434-lasagnetta
52
  - SharpMeow/vesuvius-center-lines
53
  tags:
54
  - vesuvius-challenge
 
65
  The **lasagna field** for Herculaneum scroll CT, two ways:
66
 
67
  - **Every field, by scroll**: whole-scan fields for 24 scrolls in one list, each with its volume, voxel size,
68
+ model, size and link (`fields.json`). Seven are villa's own fields in the Vesuvius Challenge open data. Thirty-four
69
  are public datasets made here for scans that had none: twelve with villa's lasagna model, among them ten that
70
  also stream from a bucket (PHerc0175A, PHerc0175B, PHerc0306B, PHerc0483A, PHerc0483B, PHerc0490A, PHerc0490B,
71
+ PHerc0841, PHerc0846A and PHerc0846B), and twenty-two with [Lasagnetta](https://huggingface.co/SharpMeow/lasagnetta)
72
  0.1.1, a faster copy of it.
73
  - **Make a field** for any box of any public scan: pick a scan and a point, and the Space runs villa's own lasagna
74
  model there on ZeroGPU, checks the result against the field the open data already publishes for that scan, and
fields.json CHANGED
@@ -70,6 +70,111 @@
70
  "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0009b-20260319104112-lasagnetta/resolve/main/preview-xz.png",
71
  "browse": "https://huggingface.co/datasets/SharpMeow/pherc0009b-20260319104112-lasagnetta"
72
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  {
74
  "scroll": "PHerc0139",
75
  "volume": "20260102150214",
@@ -91,6 +196,90 @@
91
  "preview_xz": "https://huggingface.co/spaces/SharpMeow/lasagna-fields/resolve/main/assets/previews/PHerc0139-20260102150214-xz.webp",
92
  "browse": "https://vesuvius-challenge-open-data.s3.us-east-1.amazonaws.com/index.html#PHerc0139/representations/predictions/lasagna/20260102150214-lasagna-20260419180421-L2/"
93
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  {
95
  "scroll": "PHerc0172",
96
  "volume": "20241024131838",
@@ -112,6 +301,27 @@
112
  "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0172-lasagnetta/resolve/main/preview-xz.png",
113
  "browse": "https://huggingface.co/datasets/SharpMeow/pherc0172-lasagnetta"
114
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  {
116
  "scroll": "PHerc0175A",
117
  "volume": "20250521115057",
@@ -532,6 +742,27 @@
532
  "preview_xz": "https://huggingface.co/spaces/SharpMeow/lasagna-fields/resolve/main/assets/previews/PHerc1667-20251217075048-xz.webp",
533
  "browse": "https://vesuvius-challenge-open-data.s3.us-east-1.amazonaws.com/index.html#PHerc1667/representations/predictions/lasagna/20251217075048-lasagna-20260419180421-L2/"
534
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
535
  {
536
  "scroll": "PHercMAN5",
537
  "volume": "20260311104824",
@@ -595,6 +826,27 @@
595
  "preview_xz": "https://huggingface.co/datasets/SharpMeow/phercmanbp-lasagna/resolve/main/preview-xz.png",
596
  "browse": "https://huggingface.co/datasets/SharpMeow/phercmanbp-lasagna"
597
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
598
  {
599
  "scroll": "PHercParis3",
600
  "volume": "20260427095331",
 
70
  "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0009b-20260319104112-lasagnetta/resolve/main/preview-xz.png",
71
  "browse": "https://huggingface.co/datasets/SharpMeow/pherc0009b-20260319104112-lasagnetta"
72
  },
73
+ {
74
+ "scroll": "PHerc0139",
75
+ "volume": "20250728140407",
76
+ "zarr": "20250728140407-9.362um-1.2m-113keV-masked.zarr",
77
+ "voxel_um": 9.362,
78
+ "read_level": 0,
79
+ "model": "Lasagnetta 0.1.1",
80
+ "source": "dataset",
81
+ "made_by": "Chase Hendrick",
82
+ "run": null,
83
+ "bytes": 46588663859,
84
+ "dataset": "SharpMeow/pherc0139-20250728140407-lasagnetta",
85
+ "url": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250728140407-lasagnetta",
86
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20250728140407-lasagnetta-0.1.1/PHerc0139-20250728140407.lasagna.json",
87
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20250728140407-lasagnetta-0.1.1",
88
+ "gallery": false,
89
+ "note": "the release's self-check kept Lasagnetta on this volume",
90
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250728140407-lasagnetta/resolve/main/preview-xy.png",
91
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250728140407-lasagnetta/resolve/main/preview-xz.png",
92
+ "browse": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250728140407-lasagnetta"
93
+ },
94
+ {
95
+ "scroll": "PHerc0139",
96
+ "volume": "20250820105138",
97
+ "zarr": "20250820105138-2.403um-0.2m-77keV-masked.zarr",
98
+ "voxel_um": 2.403,
99
+ "read_level": 2,
100
+ "model": "Lasagnetta 0.1.1",
101
+ "source": "dataset",
102
+ "made_by": "Chase Hendrick",
103
+ "run": null,
104
+ "bytes": 10404530497,
105
+ "dataset": "SharpMeow/pherc0139-20250820105138-lasagnetta",
106
+ "url": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250820105138-lasagnetta",
107
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20250820105138-lasagnetta-0.1.1/PHerc0139-20250820105138.lasagna.json",
108
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20250820105138-lasagnetta-0.1.1",
109
+ "gallery": false,
110
+ "note": "the release's self-check kept Lasagnetta on this volume",
111
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250820105138-lasagnetta/resolve/main/preview-xy.png",
112
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250820105138-lasagnetta/resolve/main/preview-xz.png",
113
+ "browse": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250820105138-lasagnetta"
114
+ },
115
+ {
116
+ "scroll": "PHerc0139",
117
+ "volume": "20250822062710",
118
+ "zarr": "20250822062710-2.403um-0.2m-77keV-masked.zarr",
119
+ "voxel_um": 2.403,
120
+ "read_level": 2,
121
+ "model": "Lasagnetta 0.1.1",
122
+ "source": "dataset",
123
+ "made_by": "Chase Hendrick",
124
+ "run": null,
125
+ "bytes": 11004267987,
126
+ "dataset": "SharpMeow/pherc0139-20250822062710-lasagnetta",
127
+ "url": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250822062710-lasagnetta",
128
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20250822062710-lasagnetta-0.1.1/PHerc0139-20250822062710.lasagna.json",
129
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20250822062710-lasagnetta-0.1.1",
130
+ "gallery": false,
131
+ "note": "the release's self-check kept Lasagnetta on this volume",
132
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250822062710-lasagnetta/resolve/main/preview-xy.png",
133
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250822062710-lasagnetta/resolve/main/preview-xz.png",
134
+ "browse": "https://huggingface.co/datasets/SharpMeow/pherc0139-20250822062710-lasagnetta"
135
+ },
136
+ {
137
+ "scroll": "PHerc0139",
138
+ "volume": "20251107132835",
139
+ "zarr": "20251107132835-9.362um-1.2m-113keV-pag0-masked.zarr",
140
+ "voxel_um": 9.362,
141
+ "read_level": 0,
142
+ "model": "Lasagnetta 0.1.1",
143
+ "source": "dataset",
144
+ "made_by": "Chase Hendrick",
145
+ "run": null,
146
+ "bytes": 49412829747,
147
+ "dataset": "SharpMeow/pherc0139-20251107132835-lasagnetta",
148
+ "url": "https://huggingface.co/datasets/SharpMeow/pherc0139-20251107132835-lasagnetta",
149
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20251107132835-lasagnetta-0.1.1/PHerc0139-20251107132835.lasagna.json",
150
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20251107132835-lasagnetta-0.1.1",
151
+ "gallery": false,
152
+ "note": "the release's self-check found no spot it could score on this volume: a quick look; use villa's field where exact values matter",
153
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/pherc0139-20251107132835-lasagnetta/resolve/main/preview-xy.png",
154
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0139-20251107132835-lasagnetta/resolve/main/preview-xz.png",
155
+ "browse": "https://huggingface.co/datasets/SharpMeow/pherc0139-20251107132835-lasagnetta"
156
+ },
157
+ {
158
+ "scroll": "PHerc0139",
159
+ "volume": "20251107135911",
160
+ "zarr": "20251107135911-9.362um-1.2m-113keV-pag50-masked.zarr",
161
+ "voxel_um": 9.362,
162
+ "read_level": 0,
163
+ "model": "Lasagnetta 0.1.1",
164
+ "source": "dataset",
165
+ "made_by": "Chase Hendrick",
166
+ "run": null,
167
+ "bytes": 49418661368,
168
+ "dataset": "SharpMeow/pherc0139-20251107135911-lasagnetta",
169
+ "url": "https://huggingface.co/datasets/SharpMeow/pherc0139-20251107135911-lasagnetta",
170
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20251107135911-lasagnetta-0.1.1/PHerc0139-20251107135911.lasagna.json",
171
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20251107135911-lasagnetta-0.1.1",
172
+ "gallery": false,
173
+ "note": "the release's self-check found no spot it could score on this volume: a quick look; use villa's field where exact values matter",
174
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/pherc0139-20251107135911-lasagnetta/resolve/main/preview-xy.png",
175
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0139-20251107135911-lasagnetta/resolve/main/preview-xz.png",
176
+ "browse": "https://huggingface.co/datasets/SharpMeow/pherc0139-20251107135911-lasagnetta"
177
+ },
178
  {
179
  "scroll": "PHerc0139",
180
  "volume": "20260102150214",
 
196
  "preview_xz": "https://huggingface.co/spaces/SharpMeow/lasagna-fields/resolve/main/assets/previews/PHerc0139-20260102150214-xz.webp",
197
  "browse": "https://vesuvius-challenge-open-data.s3.us-east-1.amazonaws.com/index.html#PHerc0139/representations/predictions/lasagna/20260102150214-lasagna-20260419180421-L2/"
198
  },
199
+ {
200
+ "scroll": "PHerc0139",
201
+ "volume": "20260319133050",
202
+ "zarr": "20260319133050-2.403um-0.2m-77keV-masked.zarr",
203
+ "voxel_um": 2.403,
204
+ "read_level": 2,
205
+ "model": "Lasagnetta 0.1.1",
206
+ "source": "dataset",
207
+ "made_by": "Chase Hendrick",
208
+ "run": null,
209
+ "bytes": 11162772350,
210
+ "dataset": "SharpMeow/pherc0139-20260319133050-lasagnetta",
211
+ "url": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260319133050-lasagnetta",
212
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20260319133050-lasagnetta-0.1.1/PHerc0139-20260319133050.lasagna.json",
213
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20260319133050-lasagnetta-0.1.1",
214
+ "gallery": false,
215
+ "note": "the release's self-check kept Lasagnetta on this volume",
216
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260319133050-lasagnetta/resolve/main/preview-xy.png",
217
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260319133050-lasagnetta/resolve/main/preview-xz.png",
218
+ "browse": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260319133050-lasagnetta"
219
+ },
220
+ {
221
+ "scroll": "PHerc0139",
222
+ "volume": "20260319133554",
223
+ "zarr": "20260319133554-2.403um-0.2m-77keV-masked.zarr",
224
+ "voxel_um": 2.403,
225
+ "read_level": 2,
226
+ "model": "Lasagnetta 0.1.1",
227
+ "source": "dataset",
228
+ "made_by": "Chase Hendrick",
229
+ "run": null,
230
+ "bytes": 10531316663,
231
+ "dataset": "SharpMeow/pherc0139-20260319133554-lasagnetta",
232
+ "url": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260319133554-lasagnetta",
233
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20260319133554-lasagnetta-0.1.1/PHerc0139-20260319133554.lasagna.json",
234
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20260319133554-lasagnetta-0.1.1",
235
+ "gallery": false,
236
+ "note": "the release's self-check kept Lasagnetta on this volume",
237
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260319133554-lasagnetta/resolve/main/preview-xy.png",
238
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260319133554-lasagnetta/resolve/main/preview-xz.png",
239
+ "browse": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260319133554-lasagnetta"
240
+ },
241
+ {
242
+ "scroll": "PHerc0139",
243
+ "volume": "20260413113053",
244
+ "zarr": "20260413113053-1.129um-0.2m-59keV-masked.zarr",
245
+ "voxel_um": 1.129,
246
+ "read_level": 3,
247
+ "model": "Lasagnetta 0.1.1",
248
+ "source": "dataset",
249
+ "made_by": "Chase Hendrick",
250
+ "run": null,
251
+ "bytes": 4844541123,
252
+ "dataset": "SharpMeow/pherc0139-20260413113053-lasagnetta",
253
+ "url": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260413113053-lasagnetta",
254
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20260413113053-lasagnetta-0.1.1/PHerc0139-20260413113053.lasagna.json",
255
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20260413113053-lasagnetta-0.1.1",
256
+ "gallery": false,
257
+ "note": "the release's self-check kept Lasagnetta on this volume",
258
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260413113053-lasagnetta/resolve/main/preview-xy.png",
259
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260413113053-lasagnetta/resolve/main/preview-xz.png",
260
+ "browse": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260413113053-lasagnetta"
261
+ },
262
+ {
263
+ "scroll": "PHerc0139",
264
+ "volume": "20260930100252",
265
+ "zarr": "20260930100252-2.399um-0.2m-78keV-masked.zarr",
266
+ "voxel_um": 2.399,
267
+ "read_level": 2,
268
+ "model": "Lasagnetta 0.1.1",
269
+ "source": "dataset",
270
+ "made_by": "Chase Hendrick",
271
+ "run": null,
272
+ "bytes": 38744514025,
273
+ "dataset": "SharpMeow/pherc0139-20260930100252-lasagnetta",
274
+ "url": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260930100252-lasagnetta",
275
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20260930100252-lasagnetta-0.1.1/PHerc0139-20260930100252.lasagna.json",
276
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0139/representations/predictions/lasagna/20260930100252-lasagnetta-0.1.1",
277
+ "gallery": false,
278
+ "note": "the release's self-check kept Lasagnetta on this volume",
279
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260930100252-lasagnetta/resolve/main/preview-xy.png",
280
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260930100252-lasagnetta/resolve/main/preview-xz.png",
281
+ "browse": "https://huggingface.co/datasets/SharpMeow/pherc0139-20260930100252-lasagnetta"
282
+ },
283
  {
284
  "scroll": "PHerc0172",
285
  "volume": "20241024131838",
 
301
  "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0172-lasagnetta/resolve/main/preview-xz.png",
302
  "browse": "https://huggingface.co/datasets/SharpMeow/pherc0172-lasagnetta"
303
  },
304
+ {
305
+ "scroll": "PHerc0172",
306
+ "volume": "20241024131839",
307
+ "zarr": "20241024131839-7.910um-53keV-masked.zarr",
308
+ "voxel_um": 7.91,
309
+ "read_level": 0,
310
+ "model": "Lasagnetta 0.1.1",
311
+ "source": "dataset",
312
+ "made_by": "Chase Hendrick",
313
+ "run": null,
314
+ "bytes": 115577477827,
315
+ "dataset": "SharpMeow/pherc0172-20241024131839-lasagnetta",
316
+ "url": "https://huggingface.co/datasets/SharpMeow/pherc0172-20241024131839-lasagnetta",
317
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0172/representations/predictions/lasagna/20241024131839-lasagnetta-0.1.1/PHerc0172-20241024131839.lasagna.json",
318
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0172/representations/predictions/lasagna/20241024131839-lasagnetta-0.1.1",
319
+ "gallery": false,
320
+ "note": "the release's self-check pointed to villa's net here: a quick look; use villa's field where exact values matter",
321
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/pherc0172-20241024131839-lasagnetta/resolve/main/preview-xy.png",
322
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc0172-20241024131839-lasagnetta/resolve/main/preview-xz.png",
323
+ "browse": "https://huggingface.co/datasets/SharpMeow/pherc0172-20241024131839-lasagnetta"
324
+ },
325
  {
326
  "scroll": "PHerc0175A",
327
  "volume": "20250521115057",
 
742
  "preview_xz": "https://huggingface.co/spaces/SharpMeow/lasagna-fields/resolve/main/assets/previews/PHerc1667-20251217075048-xz.webp",
743
  "browse": "https://vesuvius-challenge-open-data.s3.us-east-1.amazonaws.com/index.html#PHerc1667/representations/predictions/lasagna/20251217075048-lasagna-20260419180421-L2/"
744
  },
745
+ {
746
+ "scroll": "PHerc1667",
747
+ "volume": "20260323082859",
748
+ "zarr": "20260323082859-1.129um-0.2m-59keV-masked.zarr",
749
+ "voxel_um": 1.129,
750
+ "read_level": 3,
751
+ "model": "Lasagnetta 0.1.1",
752
+ "source": "dataset",
753
+ "made_by": "Chase Hendrick",
754
+ "run": null,
755
+ "bytes": 4051684356,
756
+ "dataset": "SharpMeow/pherc1667-20260323082859-lasagnetta",
757
+ "url": "https://huggingface.co/datasets/SharpMeow/pherc1667-20260323082859-lasagnetta",
758
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc1667/representations/predictions/lasagna/20260323082859-lasagnetta-0.1.1/PHerc1667-20260323082859.lasagna.json",
759
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc1667/representations/predictions/lasagna/20260323082859-lasagnetta-0.1.1",
760
+ "gallery": false,
761
+ "note": "the release's self-check kept Lasagnetta on this volume",
762
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/pherc1667-20260323082859-lasagnetta/resolve/main/preview-xy.png",
763
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/pherc1667-20260323082859-lasagnetta/resolve/main/preview-xz.png",
764
+ "browse": "https://huggingface.co/datasets/SharpMeow/pherc1667-20260323082859-lasagnetta"
765
+ },
766
  {
767
  "scroll": "PHercMAN5",
768
  "volume": "20260311104824",
 
826
  "preview_xz": "https://huggingface.co/datasets/SharpMeow/phercmanbp-lasagna/resolve/main/preview-xz.png",
827
  "browse": "https://huggingface.co/datasets/SharpMeow/phercmanbp-lasagna"
828
  },
829
+ {
830
+ "scroll": "PHercMANBp",
831
+ "volume": "20260427100434",
832
+ "zarr": "20260427100434-1.129um-0.2m-59keV-masked.zarr",
833
+ "voxel_um": 1.129,
834
+ "read_level": 3,
835
+ "model": "Lasagnetta 0.1.1",
836
+ "source": "dataset",
837
+ "made_by": "Chase Hendrick",
838
+ "run": null,
839
+ "bytes": 256836328,
840
+ "dataset": "SharpMeow/phercmanbp-20260427100434-lasagnetta",
841
+ "url": "https://huggingface.co/datasets/SharpMeow/phercmanbp-20260427100434-lasagnetta",
842
+ "manifest": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHercMANBp/representations/predictions/lasagna/20260427100434-lasagnetta-0.1.1/PHercMANBp-20260427100434.lasagna.json",
843
+ "stream": "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHercMANBp/representations/predictions/lasagna/20260427100434-lasagnetta-0.1.1",
844
+ "gallery": false,
845
+ "note": "the release's self-check found no spot it could score on this volume: a quick look; use villa's field where exact values matter",
846
+ "preview_xy": "https://huggingface.co/datasets/SharpMeow/phercmanbp-20260427100434-lasagnetta/resolve/main/preview-xy.png",
847
+ "preview_xz": "https://huggingface.co/datasets/SharpMeow/phercmanbp-20260427100434-lasagnetta/resolve/main/preview-xz.png",
848
+ "browse": "https://huggingface.co/datasets/SharpMeow/phercmanbp-20260427100434-lasagnetta"
849
+ },
850
  {
851
  "scroll": "PHercParis3",
852
  "volume": "20260427095331",
guide/index.html CHANGED
@@ -27,130 +27,170 @@ html{scroll-behavior:smooth}
27
  body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
28
  a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
29
  h1,h2,h3{font-family:Fraunces,Georgia,serif;font-weight:650;letter-spacing:-.01em;line-height:1.15;margin:0}
30
- h2{font-size:clamp(26px,3.2vw,36px);margin-bottom:10px}
31
  h3{font-size:19px;margin-bottom:6px}
32
  p{margin:0 0 12px}
33
- code,pre,.mono{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:13.5px}
34
  :not(pre)>code{overflow-wrap:anywhere;background:var(--bg2);border:1px solid var(--line);padding:1px 6px;border-radius:5px;font-size:.88em}
35
  .wrap{max-width:1180px;margin:0 auto;padding:0 24px}
36
- nav{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
37
- nav .wrap{display:flex;align-items:center;gap:22px;height:56px}
38
- .brand{font-family:Fraunces,serif;font-weight:650;font-size:18px;color:var(--ink);display:flex;align-items:center;gap:10px;white-space:nowrap}
39
- .layers{width:22px;height:18px;border-radius:4px;background:repeating-linear-gradient(180deg,var(--accent) 0 3px,var(--accent2) 3px 5px,#f3e2bf 5px 7px,var(--basil) 7px 8px,#f3e2bf 8px 9px)}
40
- .navlinks{display:flex;gap:18px;overflow-x:auto;scrollbar-width:none;flex:1}
41
- .navlinks a{color:var(--ink2);font-size:14px;white-space:nowrap}
42
- .tbtn{border:1px solid var(--line);background:var(--card);color:var(--ink2);border-radius:8px;padding:5px 10px;cursor:pointer;font:inherit;font-size:13px}
43
  header.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
44
- .hero .wrap{padding-top:72px;padding-bottom:64px;position:relative;z-index:1}
45
  .fields{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.85}
46
  .hero:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,var(--bg) 0,var(--bg) 44%,color-mix(in srgb,var(--bg) 78%,transparent) 56%,color-mix(in srgb,var(--bg) 25%,transparent) 72%,transparent 88%)}
47
- .hero .wrap{z-index:2}
48
  .eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:600;color:var(--accent)}
49
- .hero h1{font-size:clamp(38px,6vw,68px);max-width:760px;margin:12px 0 18px}
50
- .lede{font-size:19px;color:var(--ink);max-width:640px}
51
- .by{margin-top:18px;color:var(--ink2);font-size:15px}.by b{color:var(--ink)}
52
- .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:40px;max-width:760px}
53
- .stat{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:var(--shadow)}
54
- .stat b{display:block;font-family:Fraunces,serif;font-size:30px;font-weight:650;line-height:1.1}
55
  .stat span{font-size:13px;color:var(--ink3)}
56
- .cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
 
 
 
57
  .btn{display:inline-flex;align-items:center;gap:8px;border-radius:10px;padding:10px 16px;font-weight:600;font-size:15px;border:1px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer}
58
  .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
 
59
  .btn:hover{text-decoration:none;filter:brightness(1.05)}
60
- section{padding:72px 0;border-bottom:1px solid var(--line)}
61
- .sub{color:var(--ink2);max-width:720px;margin-bottom:28px}
62
- .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
63
- .scan{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;cursor:pointer;text-align:left;padding:0;color:inherit;font:inherit;box-shadow:var(--shadow);transition:transform .15s,border-color .15s}
64
- .scan:hover{transform:translateY(-2px)}
65
- .scan[aria-pressed="true"]{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:-1px}
66
- .scan .img{aspect-ratio:2/1;background:#000;display:block;width:100%;object-fit:cover}
67
- .scan .meta{padding:10px 12px 12px}
68
- .scan .name{font-weight:600}
69
- .scan .small{font-size:12.5px;color:var(--ink3)}
70
- .detail{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:22px;margin-top:22px}
71
  .panel{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:18px}
72
- .viewer{background:#000;border-radius:10px;overflow:hidden;position:relative}
73
- .viewer img{display:block;width:100%;height:auto}
74
- .viewer .cap{position:absolute;left:10px;bottom:8px;font-size:12px;color:#e9e1d3;background:#000a;padding:2px 8px;border-radius:6px}
75
- .seg{display:inline-flex;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:12px}
76
- .seg button{border:0;background:transparent;color:var(--ink2);padding:6px 12px;cursor:pointer;font:inherit;font-size:13.5px}
77
  .seg button[aria-pressed="true"]{background:var(--accent);color:#fff}
78
- dl.facts{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:14.5px}
79
- dl.facts dt{color:var(--ink3)}dl.facts dd{margin:0;word-break:break-word}
80
- .links{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
81
  .codebox{position:relative;margin-top:10px}
82
- pre{background:var(--code);color:var(--codeink);border-radius:10px;padding:14px 16px;overflow-x:auto;overflow-y:hidden;margin:0;line-height:1.55}
83
  pre .c{color:#9a8f7e}
84
  .codebox pre{padding-top:34px}
85
  .copy{position:absolute;top:8px;right:8px;border:1px solid #ffffff22;background:#ffffff14;color:#efe6d6;border-radius:7px;padding:3px 9px;font-size:12px;cursor:pointer}
86
  .copy:hover{background:#ffffff26}
87
- .tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);margin-top:18px}
88
  .tabs button{border:0;background:none;padding:8px 12px;color:var(--ink2);cursor:pointer;font:inherit;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px}
89
  .tabs button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}
90
- .detail>*,.region>*,.panel,.codebox,.cards3>*{min-width:0}
91
- .region{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:22px}
92
- .mapbox{align-self:start;position:relative;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px}
93
- svg.map{width:100%;height:auto;display:block;cursor:crosshair;touch-action:none}
94
- .zbar{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:13.5px;color:var(--ink2)}
95
- .zbar input{flex:1;accent-color:var(--accent)}
96
- .form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
97
- .form label{font-size:12.5px;color:var(--ink3);display:block;margin-bottom:3px}
98
- .form input,.form select{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);font:inherit;font-size:14px}
99
- .result{margin-top:14px;font-size:14.5px}
100
- .pill{display:inline-block;background:var(--sel);color:var(--accent);border-radius:999px;padding:1px 9px;font-size:12.5px;font-weight:600;margin:2px 4px 2px 0}
101
- .cards3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
102
- .card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow)}
103
- .card .k{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--accent);font-weight:600;margin-bottom:6px}
104
- .steps{counter-reset:s;display:grid;gap:12px}
105
- .step{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px}
106
- .step:before{counter-increment:s;content:counter(s);display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--accent);color:#fff;font-family:Fraunces,serif;font-weight:650;font-size:18px}
107
  table{width:100%;border-collapse:collapse;font-size:14.5px;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden}
108
  th,td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:top}
109
  th{background:var(--bg2);font-weight:600;font-size:13px;color:var(--ink2)}
110
  tr:last-child td{border-bottom:0}
111
  .tablewrap{overflow-x:auto}
112
  .note{border-left:3px solid var(--accent2);background:var(--card);padding:12px 16px;border-radius:0 10px 10px 0;margin:14px 0;color:var(--ink2);font-size:15px}
113
- footer{padding:40px 0 60px;color:var(--ink3);font-size:14px}
114
- footer .wrap{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
115
- .ftools{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
116
- .ftools .seg{margin-bottom:0}
117
- .ftools .seg button{white-space:nowrap;padding:6px 11px}
118
- .ftools input{flex:1 1 220px;max-width:340px;padding:7px 12px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font:inherit;font-size:14px}
119
- .fcount{color:var(--ink3);font-size:13.5px}
120
- .fcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px;align-items:stretch}
121
- .sccard{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
122
- .sccard .thumb{position:relative;aspect-ratio:2/1;background:#000;overflow:hidden}
123
- .sccard .thumb img{display:block;width:100%;height:100%;object-fit:cover}
124
- .sccard .thumb .tag{position:absolute;left:10px;bottom:8px;font-size:11.5px;color:#f1e9dc;background:#000a;padding:2px 8px;border-radius:6px}
125
- .sccard .hd{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:12px 16px 4px}
126
- .sccard .hd h3{font-size:21px;margin:0}
127
- .sccard .hd .cnt{font-size:12.5px;color:var(--ink3);white-space:nowrap}
128
- .sccard ul{list-style:none;margin:0;padding:4px 10px 12px}
129
- .sccard li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:9px 6px;border-top:1px solid var(--line)}
130
- .sccard li:first-child{border-top:0}
131
- .sccard .res{font-weight:600;font-size:14.5px}
132
- .sccard .res .mono{font-weight:400;font-size:12px;color:var(--ink3);margin-left:6px}
133
- .sccard .sz{font-size:13px;color:var(--ink2);text-align:right;white-space:nowrap;align-self:center}
134
- .sccard .row2{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
135
- .sccard .row2 .flinks{margin-left:auto}
136
- .sccard .why{grid-column:1/-1;font-size:12.5px;color:var(--ink3);line-height:1.4}
137
- .vseg{margin-left:auto}
138
- table.flist td{vertical-align:middle}
139
- table.flist tbody+tbody{border-top:2px solid var(--line)}
140
- table.flist .sc{font-weight:600;white-space:nowrap}
141
- table.flist .num{white-space:nowrap}
142
  .mp{display:inline-block;border-radius:999px;padding:1px 9px;font-size:12.5px;font-weight:600;white-space:nowrap}
143
  .mp.villa{background:var(--sel);color:var(--accent)}
144
  .mp.lgt{background:color-mix(in srgb,var(--basil) 18%,transparent);color:var(--basil)}
145
  .mp.soon{background:var(--bg2);color:var(--ink3);border:1px dashed var(--ink3)}
146
  .fnote{display:block;font-size:12.5px;color:var(--ink3);margin-top:3px;line-height:1.4}
147
- .flinks{display:flex;gap:6px;flex-wrap:nowrap}
148
- table.flist td.mdl{max-width:300px}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  .flinks a,.flinks button{font:inherit;font-size:13px;line-height:1.5;border:1px solid var(--line);border-radius:7px;padding:2px 9px;background:var(--card);color:var(--accent);cursor:pointer;white-space:nowrap}
150
  .flinks a:hover,.flinks button:hover{text-decoration:none;border-color:var(--accent)}
151
  .fempty{color:var(--ink3);padding:14px 2px}
 
 
 
 
 
 
 
152
  #pend{margin-top:30px}
153
  #pend table td{color:var(--ink2)}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  .lbox{position:fixed;inset:0;z-index:60;background:color-mix(in srgb,#000 62%,transparent);display:grid;place-items:center;padding:16px}
155
  .lbox[hidden]{display:none}
156
  html.lbopen{overflow:hidden}
@@ -158,15 +198,14 @@ html.lbopen{overflow:hidden}
158
  .lbhead{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line)}
159
  .lbhead b{font-size:15px;margin-right:auto}
160
  #lbslice[hidden]{display:none}
161
- @media (max-width:600px){.lbhead .seg{order:3;width:100%}.lbhead .seg button{flex:1}}
162
  .lbx{border:1px solid var(--line);background:var(--bg2);color:var(--ink);border-radius:9px;padding:6px 12px;font:inherit;font-size:13.5px;cursor:pointer}
163
  #lbimg{display:block;width:100%;min-height:0;flex:1 1 auto;object-fit:contain;background:#0e1117}
164
  .lbfoot{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:10px 16px;font-size:13px;color:var(--ink2)}
165
  .toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--ink);color:var(--bg);padding:8px 14px;border-radius:9px;font-size:14px;opacity:0;transition:.2s;pointer-events:none;z-index:50}
166
  .toast.on{opacity:1;transform:translateX(-50%)}
 
167
  @media (max-width:900px){
168
- .detail,.region{grid-template-columns:1fr}
169
- .cards3{grid-template-columns:1fr}
170
  .hero .wrap{padding-top:250px}
171
  .fields{bottom:auto;height:300px;opacity:.95}
172
  .hero:after{background:linear-gradient(180deg,transparent 0,transparent 150px,color-mix(in srgb,var(--bg) 70%,transparent) 230px,var(--bg) 300px)}
@@ -182,47 +221,64 @@ html.lbopen{overflow:hidden}
182
  table.flist td[data-k]:before{content:attr(data-k);display:inline-block;min-width:86px;color:var(--ink3);font-size:12.5px}
183
  table.flist td.get{padding-top:6px}
184
  table.flist td.mdl{max-width:none}
185
- .flinks{flex-wrap:wrap}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  }
187
  @media (max-width:560px){
188
  .wrap{padding:0 16px}
 
 
 
189
  .form{grid-template-columns:repeat(2,minmax(0,1fr))}
190
- .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
191
- section{padding:52px 0}
192
- .navlinks a:nth-child(n+2){display:none}
 
 
 
 
 
 
 
193
  }
194
  </style>
195
  </head>
196
  <body>
197
- <nav><div class="wrap">
198
- <a class="brand" href="#top"><span class="layers" aria-hidden="true"></span>Lasagna Fields</a>
199
- <div class="navlinks">
200
- <a href="#all">Every field</a><a href="#scans">Preview</a><a href="#connect">Connect your tool</a><a href="#region">Get a region</a><a href="#use">Use it</a><a href="#method">How it was made</a><a href="#format">Format</a><a href="#credit">Credit</a>
201
- </div>
202
- <button class="tbtn" id="theme" type="button" aria-label="Switch light or dark">Theme</button>
203
- </div></nav>
204
-
205
  <header class="hero" id="top">
206
  <svg class="fields" id="fields" viewBox="0 0 1600 900" preserveAspectRatio="xMidYMax slice" aria-hidden="true"></svg>
 
207
  <div class="wrap">
208
  <div class="eyebrow">Vesuvius Challenge open data, made usable</div>
209
  <h1>Lasagna fields for <span id="nscrolls">24</span> Herculaneum scrolls</h1>
210
- <p class="lede">Whole-scan lasagna fields in one list, by scroll: villa's own fields in the open data, and fields made here for scrolls that had none, with the villa lasagna model or with Lasagnetta, a faster copy of it. Download a field or stream it from a URL, then use it with the lasagna surface fit or the spiral fit.</p>
211
- <p class="by">Made and shared by <b>Chase Hendrick</b>, October 2026. The villa lasagna model and code are by the authors of lasagna in ScrollPrize/villa; Lasagnetta was trained here to copy it.</p>
212
  <div class="stats" id="stats"></div>
213
  <div class="cta">
214
  <a class="btn primary" href="#all">Browse every field</a>
215
- <a class="btn primary" href="?tab=make">Make a field for any scan</a>
216
- <a class="btn" href="#connect">Stream it by URL</a>
217
- <a class="btn" href="#region">Download only a region</a>
218
- <a class="btn" href="#method">How it was made</a>
219
  </div>
220
  </div>
221
  </header>
222
 
223
  <section id="all"><div class="wrap">
224
  <h2>Every field, by scroll</h2>
225
- <p class="sub">One card per scroll, one line per whole-scan field. <span class="mp villa">villa predict3d</span> is the villa lasagna model itself, the reference. <span class="mp lgt">Lasagnetta 0.1.1</span> copies it and runs about 5 times faster: use its fields as a preview, and villa's where exact values matter. A field read at level 2 or 3 of a fine scan is on that level's grid, so multiply its coordinates by 4 or 8 for full resolution.</p>
226
  <div class="ftools">
227
  <input id="fq" type="search" placeholder="Filter by scroll or volume" aria-label="Filter by scroll or volume">
228
  <div class="seg" role="group" aria-label="Model">
@@ -243,128 +299,131 @@ html.lbopen{overflow:hidden}
243
  <div id="pend" hidden></div>
244
  </div></section>
245
 
246
- <section id="scans"><div class="wrap">
247
- <h2>Ten fields to preview and stream</h2>
248
- <p class="sub">The first ten fields made here, with the villa lasagna model, also stream from a public bucket. Pick one to see its field, its numbers and the commands to get it. Each preview is a slice of the model output: <b>cos</b> on the left, the <b>surface normals</b> as color on the right.</p>
249
- <div class="grid" id="grid"></div>
250
- <div class="detail">
251
- <div class="panel">
252
- <div class="seg" role="group" aria-label="View">
253
- <button type="button" id="vxy" aria-pressed="true">Top view</button><button type="button" id="vxz" aria-pressed="false">Side view</button>
 
 
 
 
 
 
254
  </div>
255
- <div class="viewer"><img id="dimg" alt=""><span class="cap" id="dcap"></span></div>
256
- </div>
257
- <div class="panel">
258
- <h3 id="dname"></h3>
259
- <dl class="facts" id="dfacts"></dl>
260
- <div class="links" id="dlinks"></div>
261
- <div class="tabs" role="tablist">
262
- <button role="tab" aria-selected="true" data-tab="get">Whole scan</button>
263
- <button role="tab" aria-selected="false" data-tab="load">Load in Python</button>
264
  </div>
265
- <div class="codebox"><pre id="dcode"></pre><button class="copy" data-copy="dcode" type="button">Copy</button></div>
266
  </div>
267
- </div>
268
- </div></section>
 
 
 
 
 
 
269
 
 
 
 
 
 
 
 
 
 
 
 
 
270
 
271
- <section id="connect"><div class="wrap">
272
- <h2>Connect your tool</h2>
273
- <p class="sub">Every field made here is also in the public bucket <a href="https://huggingface.co/buckets/SharpMeow/lasagna-fields">SharpMeow/lasagna-fields</a>, laid out like the Vesuvius Challenge open data (<code>SCAN/representations/predictions/lasagna/RUN/</code>). Any tool that reads zarr over HTTPS can open it, with no download and no account. The commands here follow the scan you picked above. villa's fields in the open data stream the same way from their run folder: <b>Copy URL</b> in the list gives any field's folder.</p>
274
- <div class="panel">
275
- <div style="display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center"><h3 id="cname" style="margin:0"></h3><span style="color:var(--ink3);font-size:13px">Anonymous HTTPS, CORS open, missing chunks read as empty</span></div>
276
- <div class="codebox"><pre id="curl"></pre><button class="copy" data-copy="curl" type="button">Copy</button></div>
277
- <div class="tabs" role="tablist">
278
- <button role="tab" aria-selected="true" data-ct="py">Python (zarr)</button>
279
- <button role="tab" aria-selected="false" data-ct="ng">Neuroglancer</button>
280
- <button role="tab" aria-selected="false" data-ct="villa">Local copy for lasagna</button>
281
- <button role="tab" aria-selected="false" data-ct="any">Any other tool</button>
282
- </div>
283
- <div id="cbody"></div>
284
- </div>
285
- </div></section>
286
 
287
- <section id="region"><div class="wrap">
288
- <h2>Download only the region you need</h2>
289
- <p class="sub">For the ten fields above: click the map, or type a point in full-resolution scan voxels. The first command copies from the bucket only the chunks that cover your z range. The second downloads whole parts from the dataset: each scan was computed in boxes called parts, one tar each, and a region needs only the parts it touches plus one small tar with the joined manifest. Parts you skip read as empty.</p>
290
- <div class="region">
291
- <div class="mapbox">
292
- <svg class="map" id="map" viewBox="0 0 400 400" role="img" aria-label="Top view of the scan's parts at the chosen height"></svg>
293
- <div class="zbar"><span>z</span><input type="range" id="zr" min="0" max="1000" step="1"><span class="mono" id="zv"></span></div>
294
- </div>
295
- <div>
296
- <div class="form">
297
- <div><label for="rs">Scan</label><select id="rs"></select></div>
298
- <div><label for="rz">z</label><input id="rz" type="number" min="0"></div>
299
- <div><label for="ry">y</label><input id="ry" type="number" min="0"></div>
300
- <div><label for="rx">x</label><input id="rx" type="number" min="0"></div>
301
- <div><label for="rr">Half size (voxels)</label><input id="rr" type="number" min="1" value="512"></div>
 
 
 
 
 
302
  </div>
303
- <div class="result" id="rres"></div>
304
- <div class="codebox"><pre id="rsync"></pre><button class="copy" data-copy="rsync" type="button">Copy</button></div>
305
- <div class="codebox"><pre id="rcode"></pre><button class="copy" data-copy="rcode" type="button">Copy</button></div>
306
- <div class="codebox"><pre id="rpy"></pre><button class="copy" data-copy="rpy" type="button">Copy</button></div>
307
- </div>
308
- </div>
309
- </div></section>
310
 
311
- <section id="use"><div class="wrap">
312
- <h2>Who it is for, and how to use it</h2>
313
- <p class="sub">A lasagna field is the input that the lasagna surface fit in villa reads. With it ready, nobody has to spend GPU time predicting it again.</p>
314
- <div class="cards3">
315
- <div class="card"><div class="k">Researchers</div><h3>Read it like any OME-Zarr</h3><p>Open the arrays with <code>zarr</code>, <code>tensorstore</code> or any OME-Zarr viewer. Coordinates are the scan's own voxels, divided by 2 for cos and by 4 for the other channels. The format table below says exactly what is stored.</p></div>
316
- <div class="card"><div class="k">Teams building tools</div><h3>Point lasagna at the manifest</h3><p><code>SCAN.lasagna.json</code> is the manifest that the lasagna tools read, with relative paths to the four channels. Of the ten fields above, every scan but PHerc0841 has a center line in <a href="https://huggingface.co/datasets/SharpMeow/vesuvius-center-lines">vesuvius-center-lines</a>.</p></div>
317
- <div class="card"><div class="k">Everyone else, rivals included</div><h3>Same head start for all</h3><p>These fields are public so that nobody has to spend a GPU day before trying an idea on these scrolls. Use them, compare against them, and tell us if you find a problem.</p></div>
318
- </div>
319
- <h3 style="margin-top:34px">From download to first numbers</h3>
320
- <div class="steps" style="margin-top:12px">
321
- <div class="step"><div><b>Install the Hugging Face client and zarr.</b><div class="codebox"><pre id="u1">pip install -U "huggingface_hub[cli]" "zarr&lt;3" numpy</pre><button class="copy" data-copy="u1" type="button">Copy</button></div></div></div>
322
- <div class="step"><div><b>Stream it (above), or download a scan or just a region, and check it.</b> <code>sha256sum -c SHA256SUMS</code> checks every file; add <code>--ignore-missing</code> after a partial download.</div></div>
323
- <div class="step"><div><b>Unpack the parts, then the fix tar last.</b> The fix tar (the meta tar, for a Lasagnetta field) holds the joined manifest, so it must overwrite the per-part ones.</div></div>
324
- <div class="step"><div><b>Load and decode.</b> Normals are stored as <code>uint8</code> as <code>v &times; 127 + 128</code>; <code>nz</code> is not stored, so take <code>sqrt(1 - nx&sup2; - ny&sup2;)</code>. Each card's <code>load_example.py</code> runs as is.</div></div>
325
- </div>
326
- </div></section>
327
 
328
- <section id="method"><div class="wrap">
329
- <h2>How it was made</h2>
330
- <p class="sub">Every step ran on Hugging Face Jobs from scripts, with each part's record kept. Nothing was edited by hand.</p>
331
- <div class="steps">
332
- <div class="step"><div><h3>Same settings as the published fields</h3><p>The lasagna code in villa at commit <code>db3dbea2</code>, <code>lasagna-preprocess predict3d --tile-size 192</code> with default chunks and levels, and the <a href="https://huggingface.co/scrollprize/lasagna">scrollprize/lasagna</a> model <code>model_current.pt</code> at revision <code>de45f011</code>. On a test crop of PHerc0343 these settings reproduce the published lasagna field to within 2 of 255 at every voxel compared. Bigger tiles and <code>torch.compile</code> ran faster in testing but changed the output, so they were not used.</p></div></div>
333
- <div class="step"><div><h3>Split into parts that never share a chunk</h3><p>Each scan was cut into boxes whose edges sit on multiples of 1,024 scan voxels, each small enough to finish in one Job. Because of that alignment, every chunk of every pyramid level is written by exactly one part, so the parts join without blending. PHerc0175A, the first scan, used an earlier layout whose coarsest level was rebuilt across tile edges; its card gives the details.</p></div></div>
334
- <div class="step"><div><h3>Predict on GPUs</h3><p>One Job per part on an NVIDIA RTX PRO 6000, at the scan's native resolution with no resampling: <span id="mparts"></span> parts in all.</p></div></div>
335
- <div class="step"><div><h3>Join and check</h3><p>The parts were joined into one store, with a check that no chunk appears twice. A seam check then compares the step across each part edge with the steps beside it (1.0 means no step; the limit is 1.5). Finally the card's own load snippet was run on two real parts before upload.</p></div></div>
336
- <div class="step"><div><h3>One flag, checked properly</h3><p>PHerc0841 flagged one edge: cos at z 1,024 stepped 1.62 times its neighbors. A single run straight across that edge gave the same field as the joined parts, byte for byte, in all 1,084 level-1 cos chunks and all 760 level-2 chunks of the four channels there. So that step is in the scan itself, not a seam.</p></div></div>
337
- <div class="step"><div><h3>Seven more scrolls, 29 October 2026</h3><p>PHercMANBp and PHerc0343P got villa fields the same way from their 2.4 and 2.2 碌m scans read at level 2, one 1,024-slice slab per part, with no step at any part edge (worst seam ratios 1.203 and 1.101). PHerc0009B, PHerc0172, PHerc0500P2, PHercMAN5 and PHercMANB got <a href="https://huggingface.co/SharpMeow/lasagnetta">Lasagnetta</a> 0.1.1 fields: three students averaged, cos blur 0.5, cos offset 0.04, part edges on multiples of 512 scan voxels, values kept only where the masked scan holds CT. Each card gives that scan's agreement with villa's net and what the release's self-check said there.</p></div></div>
338
- <div class="step"><div><h3>Publish with checksums, and unpacked for streaming</h3><p>Each dataset carries <code>SHA256SUMS</code>, an <code>index.json</code> with every part's box and hash, the previews and the tested load example. The same parts were then unpacked into the public bucket, with the joined manifest written last, so tools can read chunks by URL.</p></div></div>
 
 
 
 
339
  </div>
340
  </div></section>
341
 
342
- <section id="format"><div class="wrap">
343
- <h2>Format</h2>
344
- <p class="sub">The same layout as the lasagna fields in the open data. Replace <code>SCAN</code> with the scan's name.</p>
345
- <div class="tablewrap"><table>
346
- <thead><tr><th>File</th><th>Read at</th><th>Scale</th><th>Stored as</th></tr></thead>
347
- <tbody>
348
- <tr><td><code>SCAN_cos.ome.zarr</code></td><td>Level <code>1</code></td><td>Every 2nd scan voxel</td><td>uint8; peaks on papyrus sheets and dips between them</td></tr>
349
- <tr><td><code>SCAN_grad_mag.ome.zarr</code></td><td>Level <code>2</code></td><td>Every 4th scan voxel</td><td>uint8 gradient magnitude, encoded as the manifest says (<code>grad_mag_encode_scale</code>)</td></tr>
350
- <tr><td><code>SCAN_nx.ome.zarr</code>, <code>SCAN_ny.ome.zarr</code></td><td>Level <code>2</code></td><td>Every 4th scan voxel</td><td>uint8 surface normal components, <code>v &times; 127 + 128</code>; <code>nz</code> not stored</td></tr>
351
- <tr><td><code>SCAN.lasagna.json</code></td><td colspan="3">The manifest: groups, their zarr paths and scale-downs, <code>base_shape_zyx</code> and the boxes computed</td></tr>
352
- <tr><td>Every array</td><td colspan="3">zarr v2, chunks 64 &times; 64 &times; 64, Blosc zstd level 3, fill value 0, axes z, y, x, each with coarser levels down to 4</td></tr>
353
- </tbody>
354
- </table></div>
355
- <p style="margin-top:14px;color:var(--ink2);font-size:15px">Lasagnetta fields keep the same layout and channels. A field read at level 2 or 3 of a fine scan has its levels counted from that level, as its manifest's <code>base_shape_zyx</code> says.</p>
356
  <div class="note"><b>Limits.</b> This is raw model output, and nobody has checked it by eye. Regions the masked scan leaves empty are absent (read as 0). The scan's ends include the mount, and the model produces values there too.</div>
357
- </div></section>
 
 
 
 
 
 
 
 
 
 
 
 
 
358
 
359
- <section id="credit"><div class="wrap">
360
- <h2>Credit and terms</h2>
361
- <p class="sub">The scans are <a href="https://scrollprize.org">Vesuvius Challenge</a> open data under CC BY-NC 4.0, and these derived fields are shared under the same terms. Model and code are <a href="https://github.com/ScrollPrize/villa">ScrollPrize/villa</a>'s lasagna; credit to its authors. The fields listed from the open data are villa's own, published there by the Vesuvius Challenge; this page only links them. The other fields were computed and shared by Chase Hendrick, some with <a href="https://huggingface.co/SharpMeow/lasagnetta">Lasagnetta</a>, which copies villa's lasagna.</p>
362
- <h3>Cite</h3>
363
- <div class="codebox"><pre id="cite">Chase Hendrick (2026). Lasagna Fields: lasagna fields for Herculaneum scrolls.
364
  Hugging Face. https://huggingface.co/spaces/SharpMeow/lasagna-fields
365
  Computed with ScrollPrize/villa lasagna (db3dbea2) and scrollprize/lasagna (de45f011),
366
  and with Lasagnetta 0.1.1 (SharpMeow/lasagnetta), on Vesuvius Challenge open data (CC BY-NC 4.0).</pre><button class="copy" data-copy="cite" type="button">Copy</button></div>
367
- </div></section>
 
 
368
 
369
  <footer><div class="wrap">
370
  <span>Lasagna Fields, by Chase Hendrick &middot; <a href="https://huggingface.co/SharpMeow">huggingface.co/SharpMeow</a> &middot; <a href="https://github.com/ChaseHendrick">github.com/ChaseHendrick</a></span>
@@ -385,7 +444,7 @@ const $=id=>document.getElementById(id);
385
  const fmt=n=>n.toLocaleString('en-US');
386
  const gb=b=>(b/1e9).toFixed(1)+' GB';
387
  const esc=s=>s.replace(/&/g,'&amp;').replace(/</g,'&lt;');
388
- let cur=0,view='xy',tab='get';
389
 
390
  /* theme */
391
  (function(){let t=null;try{t=localStorage.getItem('lf-theme')}catch(e){}
@@ -440,7 +499,9 @@ const attr=s=>esc(String(s)).replace(/"/g,'&quot;');
440
  const uniq=a=>a.filter((v,i)=>a.indexOf(v)===i);
441
  const um=v=>(+v).toLocaleString('en-US',{maximumFractionDigits:3})+' 碌m';
442
  const lvl=f=>f.read_level?'read at level '+f.read_level+', '+(f.voxel_um*Math.pow(2,f.read_level)).toFixed(1)+' 碌m':'read at full resolution';
 
443
  let fm='',fq='',fw='',fv='cards',pv=null;
 
444
  function links(f){const od=f.source==='open-data';
445
  return '<a href="'+attr(f.browse||f.url)+'" target="_blank" rel="noopener" title="'+(od?'its run folder in the Vesuvius Challenge open data':'its Hugging Face dataset, to download')+'">Dataset</a>'+
446
  '<a href="'+attr(f.manifest)+'" target="_blank" rel="noopener" title="the lasagna.json the lasagna fit reads">Manifest</a>'+
@@ -451,18 +512,29 @@ function fieldRow(f,first,n){
451
  return '<tr>'+(first?'<td class="sc" rowspan="'+n+'">'+esc(f.scroll)+'</td>':'')+
452
  '<td data-k="Volume"><span class="mono">'+esc(f.volume)+'</span></td>'+
453
  '<td data-k="Voxel size" class="num">'+um(f.voxel_um)+'<span class="fnote">'+lvl(f)+'</span></td>'+
454
- '<td data-k="Model" class="mdl"><span class="mp '+(f.model.indexOf('Lasagnetta')===0?'lgt':'villa')+'">'+esc(f.model)+'</span>'+(f.note?'<span class="fnote">'+esc(f.note)+'</span>':'')+'</td>'+
455
  '<td data-k="Where">'+where+'</td><td data-k="Size" class="num">'+gb(f.bytes)+'</td>'+
456
  '<td class="get"><div class="flinks">'+links(f)+'</div></td></tr>'}
457
  function thumbOf(g){const f=g[0];return {src:'assets/thumbs/'+f.scroll+'-'+f.volume+'.webp',alt:f.preview_xy,vol:f.volume}}
458
- function cardLine(f){
459
- const src=f.source==='open-data'?'open data':'SharpMeow';
460
- return '<li><div class="res">'+um(f.voxel_um)+'<span class="mono">'+esc(f.volume)+'</span></div><div class="sz">'+gb(f.bytes)+'</div>'+
461
- '<div class="row2"><span class="mp '+(f.model.indexOf('Lasagnetta')===0?'lgt':'villa')+'">'+esc(f.model)+'</span><span class="fnote" style="margin:0">'+src+(f.read_level?', level '+f.read_level:'')+'</span><div class="flinks">'+links(f)+'</div></div>'+
 
 
462
  (f.note?'<div class="why">'+esc(f.note)+'</div>':'')+'</li>'}
463
- function card(g){const t=thumbOf(g),n=g.length;
464
- const img='<img loading="lazy" src="'+t.src+'" data-alt="'+attr(t.alt)+'" alt="'+attr(g[0].scroll)+' field preview, cos and normals" onerror="if(this.dataset.alt){this.src=this.dataset.alt;this.dataset.alt=\'\'}"><span class="tag">cos | normals 路 '+esc(t.vol)+'</span>';
465
- return '<article class="sccard"><div class="thumb">'+img+'</div><div class="hd"><h3>'+esc(g[0].scroll)+'</h3><span class="cnt">'+n+(n===1?' field':' fields')+' 路 '+gb(g.reduce((a,f)=>a+f.bytes,0))+'</span></div><ul>'+g.map(cardLine).join('')+'</ul></article>'}
 
 
 
 
 
 
 
 
 
466
  function drawFields(){
467
  const t=$('flist');t.querySelectorAll('tbody').forEach(b=>b.remove());
468
  $('fcards').hidden=fv!=='cards';$('ftable').hidden=fv!=='table';
@@ -473,6 +545,7 @@ function drawFields(){
473
  const groups=uniq(rows.map(f=>f.scroll)).map(s=>rows.filter(f=>f.scroll===s));
474
  t.insertAdjacentHTML('beforeend',groups.length?groups.map(g=>'<tbody>'+g.map((f,i)=>fieldRow(f,i===0,g.length)).join('')+'</tbody>').join(''):'<tbody><tr><td colspan="7" class="fempty">No field matches.</td></tr></tbody>');
475
  $('fcards').innerHTML=groups.length?groups.map(card).join(''):'<p class="fempty">No field matches.</p>';
 
476
  $('fcount').textContent=rows.length+(rows.length===1?' field':' fields')+' on '+groups.length+(groups.length===1?' scroll':' scrolls');}
477
  document.querySelectorAll('[data-fw]').forEach(b=>b.onclick=()=>{fw=b.dataset.fw;document.querySelectorAll('[data-fw]').forEach(x=>x.setAttribute('aria-pressed',x===b));drawFields()});
478
  document.querySelectorAll('[data-fv]').forEach(b=>b.onclick=()=>{fv=b.dataset.fv;document.querySelectorAll('[data-fv]').forEach(x=>x.setAttribute('aria-pressed',x===b));drawFields()});
@@ -480,22 +553,32 @@ document.querySelectorAll('[data-fm]').forEach(b=>b.onclick=()=>{fm=b.dataset.fm
480
  $('fq').oninput=()=>{fq=$('fq').value;drawFields()};
481
  ['flist','fcards'].forEach(id=>$(id).addEventListener('click',e=>{const b=e.target.closest('button');if(!b)return;
482
  if(b.dataset.pv){openPv(FL[+b.dataset.pv],'xy');return}
483
- if(b.dataset.url){const t=b.dataset.url,done=()=>{b.textContent='Copied';$('toast').classList.add('on');setTimeout(()=>{b.textContent='Copy URL';$('toast').classList.remove('on')},1200)};
484
  if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(t).then(done,()=>fallback(t,done));else fallback(t,done)}}));
485
  /* preview: the field's two pictures in a box over the page (no scrolling of its own) */
 
 
 
 
 
 
 
 
 
 
486
  function openPv(f,view){pv=f;const L=$('lbox');
487
  $('lbimg').src=view==='xz'?f.preview_xz:f.preview_xy;
488
  $('lbimg').alt=f.scroll+' '+f.volume+' '+view+' preview, cos and normals';
489
  $('lbtitle').textContent=f.scroll+' 路 '+um(f.voxel_um)+' 路 '+f.volume;
490
  document.querySelectorAll('[data-lv]').forEach(x=>x.setAttribute('aria-pressed',x.dataset.lv===view));
491
  $('lbslice').hidden=!f.gallery;
492
- if(L.hidden){L.hidden=false;document.documentElement.classList.add('lbopen');$('lbclose').focus()}}
493
  function closePv(){$('lbox').hidden=true;document.documentElement.classList.remove('lbopen');$('lbimg').removeAttribute('src');pv=null}
494
  document.querySelectorAll('[data-lv]').forEach(b=>b.onclick=()=>pv&&openPv(pv,b.dataset.lv));
495
  $('lbclose').onclick=closePv;
496
  $('lbox').addEventListener('click',e=>{if(e.target===$('lbox'))closePv()});
497
  document.addEventListener('keydown',e=>{if(e.key==='Escape'&&!$('lbox').hidden)closePv()});
498
- $('lbslice').onclick=()=>{const f=pv,i=D.findIndex(s=>s.id===f.scroll);closePv();if(i>=0){pick(i,false);$('scans').scrollIntoView({behavior:'smooth'})}};
499
  /* the volumes being made: shown without any link until each is public (fields.json, pending_not_public) */
500
  if(FP.length){$('pend').hidden=false;
501
  $('pend').innerHTML='<h3>Being made now, not public yet</h3><p class="sub" style="margin-bottom:14px">Lasagnetta 0.1.1 fields for more volumes of scrolls in the list. None is public yet, so there is nothing to download or stream.</p>'+
@@ -512,9 +595,13 @@ $('stats').innerHTML=(FL.length?[[nsc,'scrolls'],[FL.length-ours.length,'villa f
512
  $('nscrolls').textContent=FL.length?nsc:D.length;
513
  $('mparts').textContent=fmt(totP);
514
 
515
- /* gallery */
516
- $('grid').innerHTML=D.map((s,i)=>'<button class="scan" type="button" data-i="'+i+'" aria-pressed="false"><img class="img" loading="lazy" src="assets/'+s.id+'-xy.webp" alt="'+s.id+' preview"><div class="meta"><div class="name">'+s.id+'</div><div class="small">'+s.um+' 碌m &middot; '+gb(s.bytes)+' &middot; '+s.parts.length+' parts</div></div></button>').join('');
517
  $('grid').onclick=e=>{const b=e.target.closest('.scan');if(b)pick(+b.dataset.i,true)};
 
 
 
 
518
 
519
  function dl(s){const d=s.id.toLowerCase()+'-lasagna';
520
  return '<span class="c"># the whole scan, '+gb(s.bytes)+'</span>\nhf download '+s.repo+' --repo-type dataset --local-dir '+d+'\ncd '+d+' && sha256sum -c SHA256SUMS\nfor f in parts/*.tar; do tar -xf "$f"; done\ntar -xf '+s.id+'-lasagna-pyramid-fix.tar <span class="c"># last: the joined manifest</span>'}
@@ -526,21 +613,18 @@ function pick(i,scroll){cur=i;const s=D[i];
526
  const mm=(s.shape[0]*s.um/1000).toFixed(1);
527
  const facts=[['Scan',s.volume],['Voxel size',s.um+' 碌m'],['Scan size (z, y, x)',s.shape.map(fmt).join(' 脳 ')+' voxels, '+mm+' mm tall'],['Download',gb(s.bytes)+' in '+s.parts.length+' parts'],['Seam check',s.seam<=1.5?'Worst edge '+s.seam.toFixed(2)+' (limit 1.5)':'One edge at '+s.seam.toFixed(2)+', cleared: a run across it matched byte for byte']];
528
  $('dfacts').innerHTML=facts.map(([k,v])=>'<dt>'+k+'</dt><dd>'+v+'</dd>').join('');
529
- $('dlinks').innerHTML='<a class="btn primary" href="https://huggingface.co/datasets/'+s.repo+'">Open dataset</a>'+(s.center?'<a class="btn" href="https://huggingface.co/datasets/SharpMeow/vesuvius-center-lines">Center line</a>':'')+(s.id==='PHerc0175A'?'<a class="btn" href="https://huggingface.co/spaces/SharpMeow/umbilici?mode=lasagna&scan=PHerc0175A&z=6400">See in 3D</a>':'');
530
- showView();showTab();showConnect();
531
- $('rs').value=i;regionReset();
532
- if(scroll)document.querySelector('.detail').scrollIntoView({behavior:'smooth',block:'nearest'});}
533
  function showView(){const s=D[cur];
534
  $('vxy').setAttribute('aria-pressed',view==='xy');$('vxz').setAttribute('aria-pressed',view==='xz');
535
  $('dimg').src='assets/'+s.id+(view==='xy'?'-xy-l':'-xz')+'.webp';
536
  $('dimg').alt=s.id+(view==='xy'?' top view':' side view')+': cos left, normals right';
537
  $('dcap').textContent=(view==='xy'?'Slice at z '+fmt(s.pz):'Cut through the middle, side on')+' 路 cos | normals';}
538
  $('vxy').onclick=()=>{view='xy';showView()};$('vxz').onclick=()=>{view='xz';showView()};
539
- function showTab(){document.querySelectorAll('[data-tab]').forEach(b=>b.setAttribute('aria-selected',b.dataset.tab===tab));
540
- const s=D[cur],c=center(s);$('dcode').innerHTML=tab==='get'?dl(s):py(s,c[0],c[1],c[2]);}
541
- document.querySelectorAll('[data-tab]').forEach(b=>b.onclick=()=>{tab=b.dataset.tab;showTab()});
542
 
543
- /* connect */
544
  const BUCKET='https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/';
545
  let ctab='py';
546
  function base(s){return BUCKET+s.run}
@@ -552,34 +636,35 @@ function showConnect(){const s=D[cur],c=center(s),b=base(s);
552
  document.querySelectorAll('[data-ct]').forEach(t=>t.setAttribute('aria-selected',t.dataset.ct===ctab));
553
  let h='';
554
  if(ctab==='py')h='<p style="margin-top:14px">Reads only the chunks you index, over HTTPS. Tested with zarr 3.4.1, fsspec and aiohttp.</p><div class="codebox"><pre id="cpy">pip install "zarr&gt;=3" fsspec aiohttp\n\nimport zarr\n\nbase = "'+b+'"\ncos = zarr.open_array(base + "/'+s.id+'_cos.ome.zarr/1", mode="r", zarr_format=2) <span class="c"># every 2nd scan voxel</span>\nnx = zarr.open_array(base + "/'+s.id+'_nx.ome.zarr/2", mode="r", zarr_format=2) <span class="c"># every 4th scan voxel</span>\n\nz, y, x = '+c[0]+', '+c[1]+', '+c[2]+' <span class="c"># full-resolution scan voxels</span>\npatch = cos[z // 2, y // 2 - 256:y // 2 + 256, x // 2 - 256:x // 2 + 256]\nprint(patch.shape, patch.mean())</pre><button class="copy" data-copy="cpy" type="button">Copy</button></div>';
555
- if(ctab==='ng')h='<p style="margin-top:14px">Opens the cos channel (level 1) in the public Neuroglancer viewer, streaming from the bucket. Its axes d0, d1, d2 are z, y, x in level-1 voxels, half the scan\'s.</p><div class="links"><a class="btn primary" target="_blank" rel="noopener" href="'+ngLink(s,c[0],c[1],c[2])+'">Open '+s.id+' in Neuroglancer</a></div><div class="codebox"><pre id="cng">zarr2://'+b+'/'+s.id+'_cos.ome.zarr/1</pre><button class="copy" data-copy="cng" type="button">Copy</button></div><p style="margin-top:10px;font-size:14px;color:var(--ink3)">Add the source above as an image layer in any Neuroglancer. Use a level folder (<code>/1</code>, <code>/2</code>), not the <code>.ome.zarr</code> root: villa writes the axis unit as "pixel", which Neuroglancer\'s OME reader rejects.</p>';
556
- if(ctab==='villa')h='<p style="margin-top:14px">The lasagna fit in villa reads a local manifest. Sync the run folder (or only the rows you need, from the region tool below) and point lasagna at <code>'+s.id+'.lasagna.json</code>. Tested anonymously with the <code>hf</code> CLI.</p><div class="codebox"><pre id="cvl">pip install -U "huggingface_hub[cli]"\nhf buckets sync hf://buckets/SharpMeow/lasagna-fields/'+s.run+' '+s.id.toLowerCase()+'-lasagna\n<span class="c"># then point lasagna at '+s.id.toLowerCase()+'-lasagna/'+s.id+'.lasagna.json</span></pre><button class="copy" data-copy="cvl" type="button">Copy</button></div>'+(s.center?'<p style="margin-top:10px;font-size:14px">The fit and the spiral fit also want a center line: '+s.id+'\'s is in <a href="https://huggingface.co/datasets/SharpMeow/vesuvius-center-lines">vesuvius-center-lines</a>.</p>':'');
557
  if(ctab==='any')h='<div class="tablewrap" style="margin-top:14px"><table><tbody><tr><th>Store</th><td>zarr v2, one array per pyramid level, chunks 64 &times; 64 &times; 64, Blosc zstd, fill 0, <code>/</code> separator</td></tr><tr><th>URL</th><td><code>'+b+'/'+s.id+'_CHANNEL.ome.zarr/LEVEL/Z/Y/X</code></td></tr><tr><th>Channels</th><td>cos (levels 1 to 4), grad_mag, nx, ny (levels 2 to 4)</td></tr><tr><th>HTTP</th><td>Anonymous; a 302 to Hugging Face\'s CDN, which allows any origin and byte ranges; a missing chunk is a 404, which zarr readers treat as empty</td></tr><tr><th>Scale</th><td>Level k is every 2<sup>k</sup>th scan voxel; the OME <code>.zattrs</code> gives the same as scale transforms</td></tr></tbody></table></div>';
558
  $('cbody').innerHTML=h;}
559
  document.querySelectorAll('[data-ct]').forEach(b=>b.onclick=()=>{ctab=b.dataset.ct;showConnect()});
 
 
 
560
 
561
  /* region picker */
562
- $('rs').innerHTML=D.map((s,i)=>'<option value="'+i+'">'+s.id+'</option>').join('');
563
  const R={z:0,y:0,x:0};
564
  function center(s){return [Math.round(s.pz/64)*64,Math.round(s.shape[1]/2),Math.round(s.shape[2]/2)]}
565
- function regionReset(){const s=D[+$('rs').value];[R.z,R.y,R.x]=center(s);$('zr').max=s.shape[0]-1;drawRegion()}
566
  function need(s,r){const lo=[R.z-r,R.y-r,R.x-r],hi=[R.z+r,R.y+r,R.x+r];
567
  return s.parts.filter(p=>p[1].every((c,k)=>c[0]<hi[k]&&c[1]>lo[k]))}
568
- function drawRegion(){const s=D[+$('rs').value];const r=Math.max(1,+$('rr').value||512);
569
  const clamp=(v,k)=>Math.max(0,Math.min(s.shape[k]-1,Math.round(v)));R.z=clamp(R.z,0);R.y=clamp(R.y,1);R.x=clamp(R.x,2);
570
  $('rz').value=R.z;$('ry').value=R.y;$('rx').value=R.x;$('zr').value=R.z;$('zv').textContent=fmt(R.z);
571
  const W=400,sc=W/Math.max(s.shape[1],s.shape[2]),H=Math.round(s.shape[1]*sc);
572
  const m=$('map');m.setAttribute('viewBox','0 0 '+W+' '+H);
573
  const nd=new Set(need(s,r).map(p=>p[0]));
574
  let h='<rect x="0" y="0" width="'+(s.shape[2]*sc)+'" height="'+H+'" fill="var(--card)" stroke="var(--line)"/>';
575
- const css=getComputedStyle(document.documentElement);
576
  s.parts.filter(p=>p[1][0][0]<=R.z&&R.z<p[1][0][1]).forEach(p=>{const[ , y,x]=p[1];const on=nd.has(p[0]);
577
  h+='<rect x="'+(x[0]*sc+1)+'" y="'+(y[0]*sc+1)+'" width="'+((x[1]-x[0])*sc-2)+'" height="'+((y[1]-y[0])*sc-2)+'" rx="4" fill="'+(on?'var(--accent)':'var(--bg2)')+'" fill-opacity="'+(on?.28:1)+'" stroke="'+(on?'var(--accent)':'var(--ink3)')+'" stroke-opacity="'+(on?1:.5)+'"/>'+
578
  '<text x="'+((x[0]+x[1])/2*sc)+'" y="'+((y[0]+y[1])/2*sc+4)+'" text-anchor="middle" font-size="11" font-family="JetBrains Mono,monospace" fill="var(--ink2)">t'+p[0]+'</text>'});
579
  h+='<rect x="'+((R.x-r)*sc)+'" y="'+((R.y-r)*sc)+'" width="'+(2*r*sc)+'" height="'+(2*r*sc)+'" fill="none" stroke="var(--ink)" stroke-width="1.5" stroke-dasharray="4 3"/><circle cx="'+(R.x*sc)+'" cy="'+(R.y*sc)+'" r="4" fill="var(--ink)"/>';
580
  m.innerHTML=h;m.dataset.sc=sc;
581
  const parts=need(s,r),bytes=parts.reduce((a,p)=>a+p[2],0)+s.fix,d=s.id.toLowerCase()+'-'+R.z+'-'+R.y+'-'+R.x;
582
- $('rres').innerHTML='Your box touches <b>'+parts.length+'</b> of '+s.parts.length+' parts, <b>'+gb(bytes)+'</b> instead of '+gb(s.bytes)+'.<br>'+parts.map(p=>'<span class="pill">t'+p[0]+'</span>').join('');
583
  const lo=[R.z-r,R.y-r,R.x-r].map(v=>Math.max(0,v)),hi=[R.z+r,R.y+r,R.x+r].map((v,k)=>Math.min(s.shape[k]-1,v));
584
  const rows=f=>{const zs=[];for(let z=Math.floor(lo[0]/f);z<=Math.floor(hi[0]/f);z++)zs.push(z);return zs};
585
  const inc=['"*.json"','"*/.z*"'];
@@ -588,7 +673,6 @@ function drawRegion(){const s=D[+$('rs').value];const r=Math.max(1,+$('rr').valu
588
  const files=parts.map(p=>'parts/'+s.id+'-lasagna-t'+p[0]+'.tar').concat([s.id+'-lasagna-pyramid-fix.tar','SHA256SUMS','load_example.py']);
589
  $('rcode').innerHTML='<span class="c"># or from the dataset: whole parts for z, y, x = '+R.z+', '+R.y+', '+R.x+' 卤 '+r+' voxels</span>\nhf download '+s.repo+' \\\n '+files.join(' \\\n ')+' \\\n --repo-type dataset --local-dir '+d+'\ncd '+d+' && sha256sum -c --ignore-missing SHA256SUMS\nfor f in parts/*.tar; do tar -xf "$f"; done\ntar -xf '+s.id+'-lasagna-pyramid-fix.tar';
590
  $('rpy').innerHTML=py(s,R.z,R.y,R.x);}
591
- $('rs').onchange=()=>{regionReset()};
592
  ['rz','ry','rx'].forEach((id,k)=>$(id).oninput=()=>{R['zyx'[k]]=+$(id).value||0;drawRegion()});
593
  $('rr').oninput=drawRegion;$('zr').oninput=()=>{R.z=+$('zr').value;drawRegion()};
594
  function mapAt(e){const m=$('map'),b=m.getBoundingClientRect(),vb=m.viewBox.baseVal,sc=+m.dataset.sc;
@@ -597,7 +681,7 @@ let drag=false;$('map').onpointerdown=e=>{drag=true;mapAt(e)};addEventListener('
597
 
598
  /* copy */
599
  document.addEventListener('click',e=>{const b=e.target.closest('.copy');if(!b)return;
600
- const t=$(b.dataset.copy).textContent;const done=()=>{b.textContent='Copied';$('toast').classList.add('on');setTimeout(()=>{b.textContent='Copy';$('toast').classList.remove('on')},1200)};
601
  if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(t).then(done,()=>fallback(t,done));else fallback(t,done)});
602
  function fallback(t,done){const a=document.createElement('textarea');a.value=t;document.body.appendChild(a);a.select();try{document.execCommand('copy');done()}catch(e){}a.remove()}
603
 
 
27
  body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
28
  a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
29
  h1,h2,h3{font-family:Fraunces,Georgia,serif;font-weight:650;letter-spacing:-.01em;line-height:1.15;margin:0}
30
+ h2{font-size:clamp(26px,3vw,34px);margin-bottom:8px}
31
  h3{font-size:19px;margin-bottom:6px}
32
  p{margin:0 0 12px}
33
+ code,pre,.mono{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:13.5px;font-variant-ligatures:none}
34
  :not(pre)>code{overflow-wrap:anywhere;background:var(--bg2);border:1px solid var(--line);padding:1px 6px;border-radius:5px;font-size:.88em}
35
  .wrap{max-width:1180px;margin:0 auto;padding:0 24px}
36
+ .tbtn{position:absolute;top:14px;right:16px;z-index:3;border:1px solid var(--line);background:var(--card);color:var(--ink2);border-radius:8px;padding:5px 10px;cursor:pointer;font:inherit;font-size:13px}
37
+
38
+ /* hero */
 
 
 
 
39
  header.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
40
+ .hero .wrap{padding-top:60px;padding-bottom:52px;position:relative;z-index:2}
41
  .fields{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.85}
42
  .hero:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,var(--bg) 0,var(--bg) 44%,color-mix(in srgb,var(--bg) 78%,transparent) 56%,color-mix(in srgb,var(--bg) 25%,transparent) 72%,transparent 88%)}
 
43
  .eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:600;color:var(--accent)}
44
+ .hero h1{font-size:clamp(36px,5.6vw,64px);max-width:760px;margin:12px 0 16px}
45
+ .lede{font-size:18.5px;color:var(--ink);max-width:620px}
46
+ .by{color:var(--ink2);font-size:15px;margin:0}.by b{color:var(--ink)}
47
+ .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:28px;max-width:720px}
48
+ .stat{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 16px;box-shadow:var(--shadow)}
49
+ .stat b{display:block;font-family:Fraunces,serif;font-size:28px;font-weight:650;line-height:1.1}
50
  .stat span{font-size:13px;color:var(--ink3)}
51
+ .cta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:26px}
52
+ .cta .jump{font-size:14.5px;color:var(--ink2);margin-left:6px}
53
+ .cta .jump a{color:var(--ink2);border-bottom:1px solid var(--line)}
54
+ .cta .jump a:hover{color:var(--accent);text-decoration:none}
55
  .btn{display:inline-flex;align-items:center;gap:8px;border-radius:10px;padding:10px 16px;font-weight:600;font-size:15px;border:1px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer}
56
  .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
57
+ .btn.small{padding:6px 12px;font-size:14px}
58
  .btn:hover{text-decoration:none;filter:brightness(1.05)}
59
+
60
+ /* sections */
61
+ section{padding:60px 0;border-bottom:1px solid var(--line)}
62
+ .sub{color:var(--ink2);max-width:760px;margin-bottom:20px}
 
 
 
 
 
 
 
63
  .panel{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:18px}
64
+ .seg{display:inline-flex;border:1px solid var(--line);border-radius:9px;overflow:hidden}
65
+ .seg button{border:0;background:transparent;color:var(--ink2);padding:6px 12px;cursor:pointer;font:inherit;font-size:13.5px;white-space:nowrap}
 
 
 
66
  .seg button[aria-pressed="true"]{background:var(--accent);color:#fff}
 
 
 
67
  .codebox{position:relative;margin-top:10px}
68
+ pre{background:var(--code);color:var(--codeink);border-radius:10px;padding:14px 16px;white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:auto;overflow-y:hidden;margin:0;line-height:1.55}
69
  pre .c{color:#9a8f7e}
70
  .codebox pre{padding-top:34px}
71
  .copy{position:absolute;top:8px;right:8px;border:1px solid #ffffff22;background:#ffffff14;color:#efe6d6;border-radius:7px;padding:3px 9px;font-size:12px;cursor:pointer}
72
  .copy:hover{background:#ffffff26}
73
+ .tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);margin-top:16px}
74
  .tabs button{border:0;background:none;padding:8px 12px;color:var(--ink2);cursor:pointer;font:inherit;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px}
75
  .tabs button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  table{width:100%;border-collapse:collapse;font-size:14.5px;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden}
77
  th,td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:top}
78
  th{background:var(--bg2);font-weight:600;font-size:13px;color:var(--ink2)}
79
  tr:last-child td{border-bottom:0}
80
  .tablewrap{overflow-x:auto}
81
  .note{border-left:3px solid var(--accent2);background:var(--card);padding:12px 16px;border-radius:0 10px 10px 0;margin:14px 0;color:var(--ink2);font-size:15px}
82
+ .dim{color:var(--ink3);font-size:13.5px}
83
+ .pill{display:inline-block;background:var(--sel);color:var(--accent);border-radius:999px;padding:1px 9px;font-size:12.5px;font-weight:600;margin:2px 4px 2px 0}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  .mp{display:inline-block;border-radius:999px;padding:1px 9px;font-size:12.5px;font-weight:600;white-space:nowrap}
85
  .mp.villa{background:var(--sel);color:var(--accent)}
86
  .mp.lgt{background:color-mix(in srgb,var(--basil) 18%,transparent);color:var(--basil)}
87
  .mp.soon{background:var(--bg2);color:var(--ink3);border:1px dashed var(--ink3)}
88
  .fnote{display:block;font-size:12.5px;color:var(--ink3);margin-top:3px;line-height:1.4}
89
+
90
+ /* disclosure: one look for every fold on the page */
91
+ details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px}
92
+ details>summary::-webkit-details-marker{display:none}
93
+ details>summary:after{content:"";flex:none;width:7px;height:7px;margin-left:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
94
+ details[open]>summary:after{transform:translateY(2px) rotate(-135deg)}
95
+
96
+ /* every field: tools */
97
+ .ftools{display:flex;gap:10px 12px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
98
+ .ftools input{flex:1 1 220px;max-width:320px;padding:7px 12px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font:inherit;font-size:14px}
99
+ .fcount{color:var(--ink3);font-size:13.5px}
100
+ .vseg{margin-left:auto}
101
+ /* every field: one card per scroll */
102
+ .fcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;align-items:stretch}
103
+ .sccard{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;min-width:0}
104
+ .sccard .thumb{position:relative;aspect-ratio:2.4/1;background:#000;overflow:hidden}
105
+ .sccard .thumb img{display:block;width:100%;height:100%;object-fit:cover}
106
+ .sccard .thumb .tag{position:absolute;left:8px;bottom:6px;font-size:11px;color:#f1e9dc;background:#000a;padding:1px 7px;border-radius:6px}
107
+ .sccard .body{padding:11px 14px 0}
108
+ .sccard .hd{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
109
+ .sccard .hd h3{font-size:20px;margin:0}
110
+ .sccard .cnt{font-size:12.5px;color:var(--ink3);white-space:nowrap}
111
+ .sccard .sum{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;margin:6px 0 11px}
112
+ .sccard .sum .mp b{font-weight:700;margin-right:3px}
113
+ .sccard .sum .dim{font-size:12.5px;flex-basis:100%}
114
+ .sccard details.more{margin-top:auto}
115
+ .sccard ul{list-style:none;margin:0;padding:0 14px 4px}
116
+ .sccard li{padding:9px 0;border-top:1px solid var(--line)}
117
+ .sccard .one li{border-top:0;padding-top:6px}
118
+ .sccard .l1{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:14.5px}
119
+ .sccard .l1 b{font-weight:600}
120
+ .sccard .l1 .mono{font-size:12px;color:var(--ink3)}
121
+ .sccard .l1 .sz{margin-left:auto;font-size:13px;color:var(--ink2);white-space:nowrap}
122
+ .sccard .l2{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:3px}
123
+ .sccard .l2 .fnote{margin:0}
124
+ .sccard .why{font-size:12.5px;color:var(--ink3);line-height:1.4;margin-top:5px}
125
+ .sccard .flinks{margin-top:7px}
126
+ .sccard .flinks a,.sccard .flinks button{font-size:12.5px;padding:2px 7px}
127
+ details.more{border-top:1px solid var(--line)}
128
+ details.more>summary{padding:9px 14px;font-size:13.5px;font-weight:600;color:var(--accent)}
129
+ details.more>summary:hover{background:var(--bg2)}
130
+ details.more ul{padding-bottom:6px}
131
+ .flinks{display:flex;gap:6px;flex-wrap:wrap}
132
  .flinks a,.flinks button{font:inherit;font-size:13px;line-height:1.5;border:1px solid var(--line);border-radius:7px;padding:2px 9px;background:var(--card);color:var(--accent);cursor:pointer;white-space:nowrap}
133
  .flinks a:hover,.flinks button:hover{text-decoration:none;border-color:var(--accent)}
134
  .fempty{color:var(--ink3);padding:14px 2px}
135
+ /* every field: table */
136
+ table.flist td{vertical-align:middle}
137
+ table.flist tbody+tbody{border-top:2px solid var(--line)}
138
+ table.flist .sc{font-weight:600;white-space:nowrap}
139
+ table.flist .num{white-space:nowrap}
140
+ table.flist td.mdl{max-width:300px}
141
+ table.flist .flinks{flex-wrap:nowrap}
142
  #pend{margin-top:30px}
143
  #pend table td{color:var(--ink2)}
144
+
145
+ /* use a field */
146
+ .picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;margin-bottom:16px}
147
+ .scan{display:flex;align-items:center;gap:10px;min-width:0;padding:6px 10px 6px 6px;background:var(--card);border:1px solid var(--line);border-radius:11px;cursor:pointer;text-align:left;color:inherit;font:inherit;transition:border-color .15s}
148
+ .scan:hover{border-color:var(--accent2)}
149
+ .scan[aria-pressed="true"]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
150
+ .scan img{flex:none;width:72px;height:36px;object-fit:cover;border-radius:6px;background:#000;display:block}
151
+ .scan .name{font-weight:600;font-size:14px;line-height:1.25}
152
+ .scan .small{font-size:12px;color:var(--ink3);line-height:1.3}
153
+ .usebox{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px;align-items:start}
154
+ .viewer{background:#000;border-radius:10px;overflow:hidden;position:relative}
155
+ .viewer img{display:block;width:100%;height:auto}
156
+ .viewer .cap{position:absolute;left:10px;bottom:8px;font-size:12px;color:#e9e1d3;background:#000a;padding:2px 8px;border-radius:6px}
157
+ .vhead{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
158
+ dl.facts{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:8px 0 0;font-size:14.5px}
159
+ dl.facts dt{color:var(--ink3)}dl.facts dd{margin:0;overflow-wrap:anywhere}
160
+ .links{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
161
+ .howto{margin-top:18px}
162
+ .howto>.tabs{margin-top:0;padding:0 8px}
163
+ .howto>.tabs button{font-size:15px;padding:11px 14px}
164
+ .upanel{padding:18px 4px 4px}
165
+ .upanel>.lead{color:var(--ink2);max-width:820px}
166
+ .uhead{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:baseline}
167
+ .uhead h3{margin:0}
168
+ .region{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px}
169
+ .mapbox{align-self:start;position:relative;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px}
170
+ svg.map{width:100%;height:auto;display:block;cursor:crosshair;touch-action:none}
171
+ .zbar{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:13.5px;color:var(--ink2)}
172
+ .zbar input{flex:1;min-width:0;accent-color:var(--accent)}
173
+ .form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
174
+ .form label{font-size:12.5px;color:var(--ink3);display:block;margin-bottom:3px}
175
+ .form input{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);font:inherit;font-size:14px}
176
+ .result{margin-top:14px;font-size:14.5px}
177
+ ol.plain{margin:0;padding-left:22px}
178
+ ol.plain li{margin:0 0 10px;padding-left:4px}
179
+ .usebox>*,.region>*,.panel,.codebox{min-width:0}
180
+
181
+ /* about */
182
+ .about{max-width:880px}
183
+ details.fold{background:var(--card);border:1px solid var(--line);border-radius:12px;margin-top:12px}
184
+ details.fold>summary{padding:13px 18px;font-weight:600;font-size:16px}
185
+ details.fold>summary .dim{font-weight:400;font-size:13.5px}
186
+ details.fold>.inner{padding:0 18px 16px}
187
+ .mstep{margin:0 0 12px}
188
+ .mstep b{display:block;font-family:Fraunces,serif;font-weight:650;font-size:16.5px;margin-bottom:2px}
189
+ .mstep p{margin:0;color:var(--ink2);font-size:15px}
190
+
191
+ footer{padding:36px 0 52px;color:var(--ink3);font-size:14px}
192
+ footer .wrap{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
193
+ /* preview box over the page */
194
  .lbox{position:fixed;inset:0;z-index:60;background:color-mix(in srgb,#000 62%,transparent);display:grid;place-items:center;padding:16px}
195
  .lbox[hidden]{display:none}
196
  html.lbopen{overflow:hidden}
 
198
  .lbhead{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line)}
199
  .lbhead b{font-size:15px;margin-right:auto}
200
  #lbslice[hidden]{display:none}
 
201
  .lbx{border:1px solid var(--line);background:var(--bg2);color:var(--ink);border-radius:9px;padding:6px 12px;font:inherit;font-size:13.5px;cursor:pointer}
202
  #lbimg{display:block;width:100%;min-height:0;flex:1 1 auto;object-fit:contain;background:#0e1117}
203
  .lbfoot{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:10px 16px;font-size:13px;color:var(--ink2)}
204
  .toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--ink);color:var(--bg);padding:8px 14px;border-radius:9px;font-size:14px;opacity:0;transition:.2s;pointer-events:none;z-index:50}
205
  .toast.on{opacity:1;transform:translateX(-50%)}
206
+
207
  @media (max-width:900px){
208
+ .usebox,.region{grid-template-columns:1fr}
 
209
  .hero .wrap{padding-top:250px}
210
  .fields{bottom:auto;height:300px;opacity:.95}
211
  .hero:after{background:linear-gradient(180deg,transparent 0,transparent 150px,color-mix(in srgb,var(--bg) 70%,transparent) 230px,var(--bg) 300px)}
 
221
  table.flist td[data-k]:before{content:attr(data-k);display:inline-block;min-width:86px;color:var(--ink3);font-size:12.5px}
222
  table.flist td.get{padding-top:6px}
223
  table.flist td.mdl{max-width:none}
224
+ table.flist .flinks{flex-wrap:wrap}
225
+ .howto>.tabs{padding:0}
226
+ .howto>.tabs button{font-size:14px;padding:9px 10px}
227
+ .lbhead .seg{order:3;width:100%}.lbhead .seg button{flex:1}
228
+ }
229
+ @media (max-width:600px){
230
+ /* a scroll's card: picture beside the name, the fields below */
231
+ .sccard{display:grid;grid-template-columns:132px minmax(0,1fr);align-content:start}
232
+ .sccard .thumb{aspect-ratio:2/1;margin:12px 0 0 12px;border-radius:8px}
233
+ .sccard .thumb .tag{display:none}
234
+ .sccard .body{padding:10px 12px 0}
235
+ .sccard .hd{flex-direction:column;gap:0}
236
+ .sccard .foot{grid-column:1/-1}
237
+ .sccard .sum .dim{flex-basis:auto}
238
+ .sccard .one{padding-top:4px}
239
+ .sccard ul{padding:0 12px 4px}
240
+ details.more>summary{padding:9px 12px}
241
  }
242
  @media (max-width:560px){
243
  .wrap{padding:0 16px}
244
+ section{padding:44px 0}
245
+ .lede{font-size:17px}
246
+ .cta .jump{margin-left:0;flex-basis:100%}
247
  .form{grid-template-columns:repeat(2,minmax(0,1fr))}
248
+ .picker{grid-template-columns:repeat(2,minmax(0,1fr))}
249
+ .scan img{width:54px;height:27px}
250
+ .ftools input{max-width:none;flex-basis:100%}
251
+ .vseg{margin-left:0}
252
+ .panel{padding:14px}
253
+ .upanel{padding:14px 0 0}
254
+ details.fold>summary{padding:12px 14px}
255
+ details.fold>summary .dim{display:none}
256
+ .scan .gbx{display:none}
257
+ details.fold>.inner{padding:0 14px 14px}
258
  }
259
  </style>
260
  </head>
261
  <body>
 
 
 
 
 
 
 
 
262
  <header class="hero" id="top">
263
  <svg class="fields" id="fields" viewBox="0 0 1600 900" preserveAspectRatio="xMidYMax slice" aria-hidden="true"></svg>
264
+ <button class="tbtn" id="theme" type="button" aria-label="Switch light or dark">Theme</button>
265
  <div class="wrap">
266
  <div class="eyebrow">Vesuvius Challenge open data, made usable</div>
267
  <h1>Lasagna fields for <span id="nscrolls">24</span> Herculaneum scrolls</h1>
268
+ <p class="lede">Whole-scan lasagna fields in one list, by scroll: villa's own fields in the open data, and fields made here with the villa lasagna model or with Lasagnetta, a faster copy of it. Download one or stream it by URL for the lasagna surface fit or the spiral fit.</p>
269
+ <p class="by">Made and shared by <b>Chase Hendrick</b>, October 2026.</p>
270
  <div class="stats" id="stats"></div>
271
  <div class="cta">
272
  <a class="btn primary" href="#all">Browse every field</a>
273
+ <a class="btn" href="?tab=make">Make a field for any scan</a>
274
+ <span class="jump"><a href="#use">Stream or download</a> &middot; <a href="#method">How it was made</a></span>
 
 
275
  </div>
276
  </div>
277
  </header>
278
 
279
  <section id="all"><div class="wrap">
280
  <h2>Every field, by scroll</h2>
281
+ <p class="sub">One card per scroll. <span class="mp villa">villa predict3d</span> is the villa lasagna model itself, the reference. <span class="mp lgt">Lasagnetta 0.1.1</span> copies it and runs about 5 times faster: use its fields as a preview, and villa's where exact values matter.</p>
282
  <div class="ftools">
283
  <input id="fq" type="search" placeholder="Filter by scroll or volume" aria-label="Filter by scroll or volume">
284
  <div class="seg" role="group" aria-label="Model">
 
299
  <div id="pend" hidden></div>
300
  </div></section>
301
 
302
+ <section id="use"><div class="wrap">
303
+ <h2>Stream, download and load</h2>
304
+ <p class="sub">Every field made here is also in the public bucket <a href="https://huggingface.co/buckets/SharpMeow/lasagna-fields">SharpMeow/lasagna-fields</a>, so any tool that reads zarr over HTTPS opens it with no download and no account. Pick one of the first ten fields made here, with the villa lasagna model, to see its field, its numbers and the commands to get it; for any other field, <b>Copy URL</b> in the list gives its folder.</p>
305
+ <div class="picker" id="grid" role="group" aria-label="Scan"></div>
306
+ <div class="panel">
307
+ <div class="usebox" id="usebox">
308
+ <div>
309
+ <div class="vhead">
310
+ <div class="seg" role="group" aria-label="View">
311
+ <button type="button" id="vxy" aria-pressed="true">Top view</button><button type="button" id="vxz" aria-pressed="false">Side view</button>
312
+ </div>
313
+ <span class="dim">Model output: <b>cos</b> left, <b>surface normals</b> as color right</span>
314
+ </div>
315
+ <div class="viewer"><img id="dimg" alt=""><span class="cap" id="dcap"></span></div>
316
  </div>
317
+ <div>
318
+ <h3 id="dname"></h3>
319
+ <dl class="facts" id="dfacts"></dl>
320
+ <div class="links" id="dlinks"></div>
 
 
 
 
 
321
  </div>
 
322
  </div>
323
+ <div class="howto">
324
+ <div class="tabs" role="tablist" aria-label="How to get it">
325
+ <button role="tab" type="button" aria-selected="true" data-ut="connect">Connect your tool</button>
326
+ <button role="tab" type="button" aria-selected="false" data-ut="get">Whole scan</button>
327
+ <button role="tab" type="button" aria-selected="false" data-ut="region">Only a region</button>
328
+ <button role="tab" type="button" aria-selected="false" data-ut="load">Load in Python</button>
329
+ <button role="tab" type="button" aria-selected="false" data-ut="format">Format</button>
330
+ </div>
331
 
332
+ <div class="upanel" id="u-connect" role="tabpanel">
333
+ <p class="lead">The bucket is laid out like the Vesuvius Challenge open data (<code>SCAN/representations/predictions/lasagna/RUN/</code>). villa's fields in the open data stream the same way from their run folder.</p>
334
+ <div class="uhead" id="connect"><h3 id="cname"></h3><span class="dim">Anonymous HTTPS, CORS open, missing chunks read as empty</span></div>
335
+ <div class="codebox"><pre id="curl"></pre><button class="copy" data-copy="curl" type="button">Copy</button></div>
336
+ <div class="tabs" role="tablist" aria-label="Tool">
337
+ <button role="tab" type="button" aria-selected="true" data-ct="py">Python (zarr)</button>
338
+ <button role="tab" type="button" aria-selected="false" data-ct="ng">Neuroglancer</button>
339
+ <button role="tab" type="button" aria-selected="false" data-ct="villa">Local copy for lasagna</button>
340
+ <button role="tab" type="button" aria-selected="false" data-ct="any">Any other tool</button>
341
+ </div>
342
+ <div id="cbody"></div>
343
+ </div>
344
 
345
+ <div class="upanel" id="u-get" role="tabpanel" hidden>
346
+ <ol class="plain">
347
+ <li><b>Install the Hugging Face client and zarr.</b><div class="codebox"><pre id="u1">pip install -U "huggingface_hub[cli]" "zarr&lt;3" numpy</pre><button class="copy" data-copy="u1" type="button">Copy</button></div></li>
348
+ <li><b>Download, check, unpack.</b> <code>sha256sum -c SHA256SUMS</code> checks every file. Unpack the fix tar last (the meta tar, for a Lasagnetta field): it holds the joined manifest, so it must overwrite the per-part ones.<div class="codebox"><pre id="dcode"></pre><button class="copy" data-copy="dcode" type="button">Copy</button></div></li>
349
+ <li><b>Load it.</b> The <b>Load in Python</b> tab reads a point; each dataset's <code>load_example.py</code> runs as is.</li>
350
+ </ol>
351
+ </div>
 
 
 
 
 
 
 
 
352
 
353
+ <div class="upanel" id="u-region" role="tabpanel" hidden>
354
+ <p class="lead">Click the map, or type a point in full-resolution scan voxels. The first command copies from the bucket only the chunks that cover your z range. The second downloads whole parts from the dataset: each scan was computed in boxes called parts, one tar each, and a region needs only the parts it touches plus one small tar with the joined manifest. Parts you skip read as empty; add <code>--ignore-missing</code> to the checksum check after a partial download.</p>
355
+ <div class="region" id="region">
356
+ <div class="mapbox">
357
+ <svg class="map" id="map" viewBox="0 0 400 400" role="img" aria-label="Top view of the scan's parts at the chosen height"></svg>
358
+ <div class="zbar"><span>z</span><input type="range" id="zr" min="0" max="1000" step="1" aria-label="z"><span class="mono" id="zv"></span></div>
359
+ </div>
360
+ <div>
361
+ <div class="form">
362
+ <div><label for="rz">z</label><input id="rz" type="number" min="0"></div>
363
+ <div><label for="ry">y</label><input id="ry" type="number" min="0"></div>
364
+ <div><label for="rx">x</label><input id="rx" type="number" min="0"></div>
365
+ <div><label for="rr">Half size (voxels)</label><input id="rr" type="number" min="1" value="512"></div>
366
+ </div>
367
+ <div class="result" id="rres"></div>
368
+ <div class="codebox"><pre id="rsync"></pre><button class="copy" data-copy="rsync" type="button">Copy</button></div>
369
+ <div class="codebox"><pre id="rcode"></pre><button class="copy" data-copy="rcode" type="button">Copy</button></div>
370
+ <p class="dim" style="margin-top:10px">The <b>Load in Python</b> tab reads this point.</p>
371
+ </div>
372
+ </div>
373
  </div>
 
 
 
 
 
 
 
374
 
375
+ <div class="upanel" id="u-load" role="tabpanel" hidden>
376
+ <p class="lead">Open the arrays with <code>zarr</code>, <code>tensorstore</code> or any OME-Zarr viewer. Coordinates are the scan's own voxels, divided by 2 for cos and by 4 for the other channels. Normals are stored as <code>uint8</code> as <code>v &times; 127 + 128</code>; <code>nz</code> is not stored, so take <code>sqrt(1 - nx&sup2; - ny&sup2;)</code>. This reads a local copy at the point of the <b>Only a region</b> tab; <b>Connect your tool</b> reads straight from the bucket.</p>
377
+ <div class="codebox"><pre id="rpy"></pre><button class="copy" data-copy="rpy" type="button">Copy</button></div>
378
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
379
 
380
+ <div class="upanel" id="u-format" role="tabpanel" hidden>
381
+ <p class="lead">The same layout as the lasagna fields in the open data. Replace <code>SCAN</code> with the scan's name.</p>
382
+ <div class="tablewrap" id="format"><table>
383
+ <thead><tr><th>File</th><th>Read at</th><th>Scale</th><th>Stored as</th></tr></thead>
384
+ <tbody>
385
+ <tr><td><code>SCAN_cos.ome.zarr</code></td><td>Level <code>1</code></td><td>Every 2nd scan voxel</td><td>uint8; peaks on papyrus sheets and dips between them</td></tr>
386
+ <tr><td><code>SCAN_grad_mag.ome.zarr</code></td><td>Level <code>2</code></td><td>Every 4th scan voxel</td><td>uint8 gradient magnitude, encoded as the manifest says (<code>grad_mag_encode_scale</code>)</td></tr>
387
+ <tr><td><code>SCAN_nx.ome.zarr</code>, <code>SCAN_ny.ome.zarr</code></td><td>Level <code>2</code></td><td>Every 4th scan voxel</td><td>uint8 surface normal components, <code>v &times; 127 + 128</code>; <code>nz</code> not stored</td></tr>
388
+ <tr><td><code>SCAN.lasagna.json</code></td><td colspan="3">The manifest the lasagna tools read: groups, their zarr paths (relative, to the four channels) and scale-downs, <code>base_shape_zyx</code> and the boxes computed</td></tr>
389
+ <tr><td>Every array</td><td colspan="3">zarr v2, chunks 64 &times; 64 &times; 64, Blosc zstd level 3, fill value 0, axes z, y, x, each with coarser levels down to 4</td></tr>
390
+ </tbody>
391
+ </table></div>
392
+ <p style="margin-top:14px;color:var(--ink2);font-size:15px">Lasagnetta fields keep the same layout and channels. A field read at level 2 or 3 of a fine scan is on that level's grid: its levels are counted from that level, as its manifest's <code>base_shape_zyx</code> says, so multiply its coordinates by 4 or 8 for full resolution.</p>
393
+ </div>
394
+ </div>
395
  </div>
396
  </div></section>
397
 
398
+ <section id="about"><div class="wrap"><div class="about">
399
+ <h2>About these fields</h2>
400
+ <p class="sub">A lasagna field is the input that the lasagna surface fit in villa reads. These are public so that nobody has to spend a GPU day before trying an idea on these scrolls: use them, compare against them, and tell us if you find a problem.</p>
 
 
 
 
 
 
 
 
 
 
 
401
  <div class="note"><b>Limits.</b> This is raw model output, and nobody has checked it by eye. Regions the masked scan leaves empty are absent (read as 0). The scan's ends include the mount, and the model produces values there too.</div>
402
+ <p id="credit">The scans are <a href="https://scrollprize.org">Vesuvius Challenge</a> open data under CC BY-NC 4.0, and these derived fields are shared under the same terms. Model and code are <a href="https://github.com/ScrollPrize/villa">ScrollPrize/villa</a>'s lasagna; credit to its authors. The fields listed from the open data are villa's own, published there by the Vesuvius Challenge; this page only links them. The other fields were computed and shared by Chase Hendrick, some with <a href="https://huggingface.co/SharpMeow/lasagnetta">Lasagnetta</a>, which was trained here to copy villa's lasagna.</p>
403
+
404
+ <details class="fold" id="method">
405
+ <summary>How it was made <span class="dim">every step ran on Hugging Face Jobs from scripts, with each part's record kept; nothing was edited by hand</span></summary>
406
+ <div class="inner">
407
+ <div class="mstep"><b>Same settings as the published fields</b><p>The lasagna code in villa at commit <code>db3dbea2</code>, <code>lasagna-preprocess predict3d --tile-size 192</code> with default chunks and levels, and the <a href="https://huggingface.co/scrollprize/lasagna">scrollprize/lasagna</a> model <code>model_current.pt</code> at revision <code>de45f011</code>. On a test crop of PHerc0343 these settings reproduce the published lasagna field to within 2 of 255 at every voxel compared. Bigger tiles and <code>torch.compile</code> ran faster in testing but changed the output, so they were not used.</p></div>
408
+ <div class="mstep"><b>Split into parts that never share a chunk</b><p>Each scan was cut into boxes whose edges sit on multiples of 1,024 scan voxels, each small enough to finish in one Job. Because of that alignment, every chunk of every pyramid level is written by exactly one part, so the parts join without blending. PHerc0175A, the first scan, used an earlier layout whose coarsest level was rebuilt across tile edges; its card gives the details.</p></div>
409
+ <div class="mstep"><b>Predict on GPUs</b><p>One Job per part on an NVIDIA RTX PRO 6000, at the scan's native resolution with no resampling: <span id="mparts"></span> parts in all.</p></div>
410
+ <div class="mstep"><b>Join and check</b><p>The parts were joined into one store, with a check that no chunk appears twice. A seam check then compares the step across each part edge with the steps beside it (1.0 means no step; the limit is 1.5). Finally the card's own load snippet was run on two real parts before upload.</p></div>
411
+ <div class="mstep"><b>One flag, checked properly</b><p>PHerc0841 flagged one edge: cos at z 1,024 stepped 1.62 times its neighbors. A single run straight across that edge gave the same field as the joined parts, byte for byte, in all 1,084 level-1 cos chunks and all 760 level-2 chunks of the four channels there. So that step is in the scan itself, not a seam.</p></div>
412
+ <div class="mstep"><b>Seven more scrolls, 29 October 2026</b><p>PHercMANBp and PHerc0343P got villa fields the same way from their 2.4 and 2.2 碌m scans read at level 2, one 1,024-slice slab per part, with no step at any part edge (worst seam ratios 1.203 and 1.101). PHerc0009B, PHerc0172, PHerc0500P2, PHercMAN5 and PHercMANB got <a href="https://huggingface.co/SharpMeow/lasagnetta">Lasagnetta</a> 0.1.1 fields: three students averaged, cos blur 0.5, cos offset 0.04, part edges on multiples of 512 scan voxels, values kept only where the masked scan holds CT. Each card gives that scan's agreement with villa's net and what the release's self-check said there.</p></div>
413
+ <div class="mstep"><b>Publish with checksums, and unpacked for streaming</b><p>Each dataset carries <code>SHA256SUMS</code>, an <code>index.json</code> with every part's box and hash, the previews and the tested load example. The same parts were then unpacked into the public bucket, with the joined manifest written last, so tools can read chunks by URL.</p></div>
414
+ </div>
415
+ </details>
416
 
417
+ <details class="fold">
418
+ <summary>Cite</summary>
419
+ <div class="inner">
420
+ <div class="codebox" style="margin-top:0"><pre id="cite">Chase Hendrick (2026). Lasagna Fields: lasagna fields for Herculaneum scrolls.
 
421
  Hugging Face. https://huggingface.co/spaces/SharpMeow/lasagna-fields
422
  Computed with ScrollPrize/villa lasagna (db3dbea2) and scrollprize/lasagna (de45f011),
423
  and with Lasagnetta 0.1.1 (SharpMeow/lasagnetta), on Vesuvius Challenge open data (CC BY-NC 4.0).</pre><button class="copy" data-copy="cite" type="button">Copy</button></div>
424
+ </div>
425
+ </details>
426
+ </div></div></section>
427
 
428
  <footer><div class="wrap">
429
  <span>Lasagna Fields, by Chase Hendrick &middot; <a href="https://huggingface.co/SharpMeow">huggingface.co/SharpMeow</a> &middot; <a href="https://github.com/ChaseHendrick">github.com/ChaseHendrick</a></span>
 
444
  const fmt=n=>n.toLocaleString('en-US');
445
  const gb=b=>(b/1e9).toFixed(1)+' GB';
446
  const esc=s=>s.replace(/&/g,'&amp;').replace(/</g,'&lt;');
447
+ let cur=0,view='xy',ut='connect';
448
 
449
  /* theme */
450
  (function(){let t=null;try{t=localStorage.getItem('lf-theme')}catch(e){}
 
499
  const uniq=a=>a.filter((v,i)=>a.indexOf(v)===i);
500
  const um=v=>(+v).toLocaleString('en-US',{maximumFractionDigits:3})+' 碌m';
501
  const lvl=f=>f.read_level?'read at level '+f.read_level+', '+(f.voxel_um*Math.pow(2,f.read_level)).toFixed(1)+' 碌m':'read at full resolution';
502
+ const chip=m=>'<span class="mp '+(m.indexOf('Lasagnetta')===0?'lgt':'villa')+'">'+esc(m)+'</span>';
503
  let fm='',fq='',fw='',fv='cards',pv=null;
504
+ const openSc=new Set();
505
  function links(f){const od=f.source==='open-data';
506
  return '<a href="'+attr(f.browse||f.url)+'" target="_blank" rel="noopener" title="'+(od?'its run folder in the Vesuvius Challenge open data':'its Hugging Face dataset, to download')+'">Dataset</a>'+
507
  '<a href="'+attr(f.manifest)+'" target="_blank" rel="noopener" title="the lasagna.json the lasagna fit reads">Manifest</a>'+
 
512
  return '<tr>'+(first?'<td class="sc" rowspan="'+n+'">'+esc(f.scroll)+'</td>':'')+
513
  '<td data-k="Volume"><span class="mono">'+esc(f.volume)+'</span></td>'+
514
  '<td data-k="Voxel size" class="num">'+um(f.voxel_um)+'<span class="fnote">'+lvl(f)+'</span></td>'+
515
+ '<td data-k="Model" class="mdl">'+chip(f.model)+(f.note?'<span class="fnote">'+esc(f.note)+'</span>':'')+'</td>'+
516
  '<td data-k="Where">'+where+'</td><td data-k="Size" class="num">'+gb(f.bytes)+'</td>'+
517
  '<td class="get"><div class="flinks">'+links(f)+'</div></td></tr>'}
518
  function thumbOf(g){const f=g[0];return {src:'assets/thumbs/'+f.scroll+'-'+f.volume+'.webp',alt:f.preview_xy,vol:f.volume}}
519
+ const srcOf=f=>f.source==='open-data'?'open data':'SharpMeow';
520
+ /* one field of a card: its voxel size and volume, model and source, the four links, and its note */
521
+ function cardLine(f,size){
522
+ return '<li><div class="l1"><b>'+um(f.voxel_um)+'</b><span class="mono">'+esc(f.volume)+'</span>'+(size?'<span class="sz">'+gb(f.bytes)+'</span>':'')+'</div>'+
523
+ '<div class="l2">'+chip(f.model)+'<span class="fnote">'+srcOf(f)+(f.read_level?', level '+f.read_level:'')+'</span></div>'+
524
+ '<div class="flinks">'+links(f)+'</div>'+
525
  (f.note?'<div class="why">'+esc(f.note)+'</div>':'')+'</li>'}
526
+ /* a card's summary when it holds more than one field: its models, voxel sizes and sources */
527
+ function summary(g){
528
+ const ms=uniq(g.map(f=>f.model)).map(m=>{const k=g.filter(f=>f.model===m).length;return '<span class="mp '+(m.indexOf('Lasagnetta')===0?'lgt':'villa')+'"><b>'+k+'</b>'+esc(m)+'</span>'}).join('');
529
+ const v=uniq(g.map(f=>+f.voxel_um)).sort((a,b)=>a-b).map(x=>um(x).replace(' 碌m',''));
530
+ const vs=(v.length>2?v[0]+' to '+v[v.length-1]:v.join(' and '))+' 碌m';
531
+ return '<div class="sum">'+ms+'<span class="dim">'+vs+' &middot; '+uniq(g.map(srcOf)).join(' and ')+'</span></div>'}
532
+ function card(g){const t=thumbOf(g),n=g.length,sc=g[0].scroll;
533
+ const img='<img loading="lazy" src="'+t.src+'" data-alt="'+attr(t.alt)+'" alt="'+attr(sc)+' field preview, cos and normals" onerror="if(this.dataset.alt){this.src=this.dataset.alt;this.dataset.alt=\'\'}"><span class="tag">cos | normals</span>';
534
+ const open=openSc.has(sc)||(fq.trim()!=='');
535
+ const foot=n===1?'<div class="foot one"><ul>'+cardLine(g[0],false)+'</ul></div>'
536
+ :'<details class="foot more" data-sc="'+attr(sc)+'"'+(open?' open':'')+'><summary>Show the '+n+' fields and their links</summary><ul>'+g.map(f=>cardLine(f,true)).join('')+'</ul></details>';
537
+ return '<article class="sccard"><div class="thumb">'+img+'</div><div class="body"><div class="hd"><h3>'+esc(sc)+'</h3><span class="cnt">'+n+(n===1?' field':' fields')+' &middot; '+gb(g.reduce((a,f)=>a+f.bytes,0))+'</span></div>'+(n>1?summary(g):'')+'</div>'+foot+'</article>'}
538
  function drawFields(){
539
  const t=$('flist');t.querySelectorAll('tbody').forEach(b=>b.remove());
540
  $('fcards').hidden=fv!=='cards';$('ftable').hidden=fv!=='table';
 
545
  const groups=uniq(rows.map(f=>f.scroll)).map(s=>rows.filter(f=>f.scroll===s));
546
  t.insertAdjacentHTML('beforeend',groups.length?groups.map(g=>'<tbody>'+g.map((f,i)=>fieldRow(f,i===0,g.length)).join('')+'</tbody>').join(''):'<tbody><tr><td colspan="7" class="fempty">No field matches.</td></tr></tbody>');
547
  $('fcards').innerHTML=groups.length?groups.map(card).join(''):'<p class="fempty">No field matches.</p>';
548
+ $('fcards').querySelectorAll('details.more').forEach(d=>d.addEventListener('toggle',()=>{if(d.open)openSc.add(d.dataset.sc);else openSc.delete(d.dataset.sc)}));
549
  $('fcount').textContent=rows.length+(rows.length===1?' field':' fields')+' on '+groups.length+(groups.length===1?' scroll':' scrolls');}
550
  document.querySelectorAll('[data-fw]').forEach(b=>b.onclick=()=>{fw=b.dataset.fw;document.querySelectorAll('[data-fw]').forEach(x=>x.setAttribute('aria-pressed',x===b));drawFields()});
551
  document.querySelectorAll('[data-fv]').forEach(b=>b.onclick=()=>{fv=b.dataset.fv;document.querySelectorAll('[data-fv]').forEach(x=>x.setAttribute('aria-pressed',x===b));drawFields()});
 
553
  $('fq').oninput=()=>{fq=$('fq').value;drawFields()};
554
  ['flist','fcards'].forEach(id=>$(id).addEventListener('click',e=>{const b=e.target.closest('button');if(!b)return;
555
  if(b.dataset.pv){openPv(FL[+b.dataset.pv],'xy');return}
556
+ if(b.dataset.url){const t=b.dataset.url,done=()=>{b.textContent='Copied';toastOn();setTimeout(()=>{b.textContent='Copy URL';$('toast').classList.remove('on')},1200)};
557
  if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(t).then(done,()=>fallback(t,done));else fallback(t,done)}}));
558
  /* preview: the field's two pictures in a box over the page (no scrolling of its own) */
559
+ /* inside the Space the guide's frame is as tall as the guide and the page scrolls, so a fixed box would sit in the
560
+ middle of the whole frame: place the box and the toast in the part of the frame that is on screen */
561
+ function onScreen(){let fe=null;try{fe=window.frameElement}catch(e){}
562
+ if(!fe)return null;const r=fe.getBoundingClientRect(),vh=parent.innerHeight,dh=document.documentElement.scrollHeight;
563
+ return {top:Math.max(0,Math.min(-r.top,dh-vh)),h:Math.min(vh,dh)}}
564
+ function placeLb(){const L=$('lbox'),v=onScreen();if(!v)return;
565
+ L.style.position='absolute';L.style.top=v.top+'px';L.style.bottom='auto';L.style.height=v.h+'px';
566
+ L.querySelector('.lbpanel').style.maxHeight=(v.h-32)+'px'}
567
+ function toastOn(){const T=$('toast'),v=onScreen();if(v){T.style.position='absolute';T.style.bottom='auto';T.style.top=(v.top+v.h-64)+'px'}T.classList.add('on')}
568
+ try{parent.addEventListener('scroll',()=>{if(!$('lbox').hidden)placeLb()},{passive:true})}catch(e){}
569
  function openPv(f,view){pv=f;const L=$('lbox');
570
  $('lbimg').src=view==='xz'?f.preview_xz:f.preview_xy;
571
  $('lbimg').alt=f.scroll+' '+f.volume+' '+view+' preview, cos and normals';
572
  $('lbtitle').textContent=f.scroll+' 路 '+um(f.voxel_um)+' 路 '+f.volume;
573
  document.querySelectorAll('[data-lv]').forEach(x=>x.setAttribute('aria-pressed',x.dataset.lv===view));
574
  $('lbslice').hidden=!f.gallery;
575
+ if(L.hidden){L.hidden=false;placeLb();document.documentElement.classList.add('lbopen');$('lbclose').focus({preventScroll:true})}}
576
  function closePv(){$('lbox').hidden=true;document.documentElement.classList.remove('lbopen');$('lbimg').removeAttribute('src');pv=null}
577
  document.querySelectorAll('[data-lv]').forEach(b=>b.onclick=()=>pv&&openPv(pv,b.dataset.lv));
578
  $('lbclose').onclick=closePv;
579
  $('lbox').addEventListener('click',e=>{if(e.target===$('lbox'))closePv()});
580
  document.addEventListener('keydown',e=>{if(e.key==='Escape'&&!$('lbox').hidden)closePv()});
581
+ $('lbslice').onclick=()=>{const f=pv,i=D.findIndex(s=>s.id===f.scroll);closePv();if(i>=0){pick(i,false);$('use').scrollIntoView({behavior:'smooth'})}};
582
  /* the volumes being made: shown without any link until each is public (fields.json, pending_not_public) */
583
  if(FP.length){$('pend').hidden=false;
584
  $('pend').innerHTML='<h3>Being made now, not public yet</h3><p class="sub" style="margin-bottom:14px">Lasagnetta 0.1.1 fields for more volumes of scrolls in the list. None is public yet, so there is nothing to download or stream.</p>'+
 
595
  $('nscrolls').textContent=FL.length?nsc:D.length;
596
  $('mparts').textContent=fmt(totP);
597
 
598
+ /* stream, download and load: one of the ten bucket fields drives every tab */
599
+ $('grid').innerHTML=D.map((s,i)=>'<button class="scan" type="button" data-i="'+i+'" aria-pressed="false"><img loading="lazy" src="assets/'+s.id+'-xy.webp" alt=""><span><span class="name">'+s.id+'</span><br><span class="small">'+s.um+' 碌m<span class="gbx"> &middot; '+gb(s.bytes)+'</span></span></span></button>').join('');
600
  $('grid').onclick=e=>{const b=e.target.closest('.scan');if(b)pick(+b.dataset.i,true)};
601
+ function showUse(n){ut=n;
602
+ document.querySelectorAll('[data-ut]').forEach(b=>b.setAttribute('aria-selected',b.dataset.ut===n));
603
+ document.querySelectorAll('.upanel').forEach(p=>p.hidden=p.id!=='u-'+n);}
604
+ document.querySelectorAll('[data-ut]').forEach(b=>b.onclick=()=>showUse(b.dataset.ut));
605
 
606
  function dl(s){const d=s.id.toLowerCase()+'-lasagna';
607
  return '<span class="c"># the whole scan, '+gb(s.bytes)+'</span>\nhf download '+s.repo+' --repo-type dataset --local-dir '+d+'\ncd '+d+' && sha256sum -c SHA256SUMS\nfor f in parts/*.tar; do tar -xf "$f"; done\ntar -xf '+s.id+'-lasagna-pyramid-fix.tar <span class="c"># last: the joined manifest</span>'}
 
613
  const mm=(s.shape[0]*s.um/1000).toFixed(1);
614
  const facts=[['Scan',s.volume],['Voxel size',s.um+' 碌m'],['Scan size (z, y, x)',s.shape.map(fmt).join(' 脳 ')+' voxels, '+mm+' mm tall'],['Download',gb(s.bytes)+' in '+s.parts.length+' parts'],['Seam check',s.seam<=1.5?'Worst edge '+s.seam.toFixed(2)+' (limit 1.5)':'One edge at '+s.seam.toFixed(2)+', cleared: a run across it matched byte for byte']];
615
  $('dfacts').innerHTML=facts.map(([k,v])=>'<dt>'+k+'</dt><dd>'+v+'</dd>').join('');
616
+ $('dlinks').innerHTML='<a class="btn primary small" href="https://huggingface.co/datasets/'+s.repo+'">Open dataset</a>'+(s.center?'<a class="btn small" href="https://huggingface.co/datasets/SharpMeow/vesuvius-center-lines">Center line</a>':'')+(s.id==='PHerc0175A'?'<a class="btn small" href="https://huggingface.co/spaces/SharpMeow/umbilici?mode=lasagna&scan=PHerc0175A&z=6400">See in 3D</a>':'');
617
+ $('dcode').innerHTML=dl(s);
618
+ showView();showConnect();regionReset();
619
+ if(scroll)$('usebox').scrollIntoView({behavior:'smooth',block:'nearest'});}
620
  function showView(){const s=D[cur];
621
  $('vxy').setAttribute('aria-pressed',view==='xy');$('vxz').setAttribute('aria-pressed',view==='xz');
622
  $('dimg').src='assets/'+s.id+(view==='xy'?'-xy-l':'-xz')+'.webp';
623
  $('dimg').alt=s.id+(view==='xy'?' top view':' side view')+': cos left, normals right';
624
  $('dcap').textContent=(view==='xy'?'Slice at z '+fmt(s.pz):'Cut through the middle, side on')+' 路 cos | normals';}
625
  $('vxy').onclick=()=>{view='xy';showView()};$('vxz').onclick=()=>{view='xz';showView()};
 
 
 
626
 
627
+ /* connect your tool */
628
  const BUCKET='https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/';
629
  let ctab='py';
630
  function base(s){return BUCKET+s.run}
 
636
  document.querySelectorAll('[data-ct]').forEach(t=>t.setAttribute('aria-selected',t.dataset.ct===ctab));
637
  let h='';
638
  if(ctab==='py')h='<p style="margin-top:14px">Reads only the chunks you index, over HTTPS. Tested with zarr 3.4.1, fsspec and aiohttp.</p><div class="codebox"><pre id="cpy">pip install "zarr&gt;=3" fsspec aiohttp\n\nimport zarr\n\nbase = "'+b+'"\ncos = zarr.open_array(base + "/'+s.id+'_cos.ome.zarr/1", mode="r", zarr_format=2) <span class="c"># every 2nd scan voxel</span>\nnx = zarr.open_array(base + "/'+s.id+'_nx.ome.zarr/2", mode="r", zarr_format=2) <span class="c"># every 4th scan voxel</span>\n\nz, y, x = '+c[0]+', '+c[1]+', '+c[2]+' <span class="c"># full-resolution scan voxels</span>\npatch = cos[z // 2, y // 2 - 256:y // 2 + 256, x // 2 - 256:x // 2 + 256]\nprint(patch.shape, patch.mean())</pre><button class="copy" data-copy="cpy" type="button">Copy</button></div>';
639
+ if(ctab==='ng')h='<p style="margin-top:14px">Opens the cos channel (level 1) in the public Neuroglancer viewer, streaming from the bucket. Its axes d0, d1, d2 are z, y, x in level-1 voxels, half the scan\'s.</p><div class="links"><a class="btn primary small" target="_blank" rel="noopener" href="'+ngLink(s,c[0],c[1],c[2])+'">Open '+s.id+' in Neuroglancer</a></div><div class="codebox"><pre id="cng">zarr2://'+b+'/'+s.id+'_cos.ome.zarr/1</pre><button class="copy" data-copy="cng" type="button">Copy</button></div><p style="margin-top:10px;font-size:14px;color:var(--ink3)">Add the source above as an image layer in any Neuroglancer. Use a level folder (<code>/1</code>, <code>/2</code>), not the <code>.ome.zarr</code> root: villa writes the axis unit as "pixel", which Neuroglancer\'s OME reader rejects.</p>';
640
+ if(ctab==='villa')h='<p style="margin-top:14px">The lasagna fit in villa reads a local manifest. Sync the run folder (or only the rows you need, from the <a href="#use" data-go="region">region tab</a>) and point lasagna at <code>'+s.id+'.lasagna.json</code>. Tested anonymously with the <code>hf</code> CLI.</p><div class="codebox"><pre id="cvl">pip install -U "huggingface_hub[cli]"\nhf buckets sync hf://buckets/SharpMeow/lasagna-fields/'+s.run+' '+s.id.toLowerCase()+'-lasagna\n<span class="c"># then point lasagna at '+s.id.toLowerCase()+'-lasagna/'+s.id+'.lasagna.json</span></pre><button class="copy" data-copy="cvl" type="button">Copy</button></div>'+(s.center?'<p style="margin-top:10px;font-size:14px">The fit and the spiral fit also want a center line: '+s.id+'\'s is in <a href="https://huggingface.co/datasets/SharpMeow/vesuvius-center-lines">vesuvius-center-lines</a>.</p>':'');
641
  if(ctab==='any')h='<div class="tablewrap" style="margin-top:14px"><table><tbody><tr><th>Store</th><td>zarr v2, one array per pyramid level, chunks 64 &times; 64 &times; 64, Blosc zstd, fill 0, <code>/</code> separator</td></tr><tr><th>URL</th><td><code>'+b+'/'+s.id+'_CHANNEL.ome.zarr/LEVEL/Z/Y/X</code></td></tr><tr><th>Channels</th><td>cos (levels 1 to 4), grad_mag, nx, ny (levels 2 to 4)</td></tr><tr><th>HTTP</th><td>Anonymous; a 302 to Hugging Face\'s CDN, which allows any origin and byte ranges; a missing chunk is a 404, which zarr readers treat as empty</td></tr><tr><th>Scale</th><td>Level k is every 2<sup>k</sup>th scan voxel; the OME <code>.zattrs</code> gives the same as scale transforms</td></tr></tbody></table></div>';
642
  $('cbody').innerHTML=h;}
643
  document.querySelectorAll('[data-ct]').forEach(b=>b.onclick=()=>{ctab=b.dataset.ct;showConnect()});
644
+ /* links that open one tab or one fold (the Space's own handler scrolls to it) */
645
+ document.addEventListener('click',e=>{const a=e.target.closest('a[href^="#"]');if(!a)return;const d=document.getElementById(a.getAttribute('href').slice(1));if(d&&d.tagName==='DETAILS')d.open=true});
646
+ document.addEventListener('click',e=>{const a=e.target.closest('[data-go]');if(a)showUse(a.dataset.go)});
647
 
648
  /* region picker */
 
649
  const R={z:0,y:0,x:0};
650
  function center(s){return [Math.round(s.pz/64)*64,Math.round(s.shape[1]/2),Math.round(s.shape[2]/2)]}
651
+ function regionReset(){const s=D[cur];[R.z,R.y,R.x]=center(s);$('zr').max=s.shape[0]-1;drawRegion()}
652
  function need(s,r){const lo=[R.z-r,R.y-r,R.x-r],hi=[R.z+r,R.y+r,R.x+r];
653
  return s.parts.filter(p=>p[1].every((c,k)=>c[0]<hi[k]&&c[1]>lo[k]))}
654
+ function drawRegion(){const s=D[cur];const r=Math.max(1,+$('rr').value||512);
655
  const clamp=(v,k)=>Math.max(0,Math.min(s.shape[k]-1,Math.round(v)));R.z=clamp(R.z,0);R.y=clamp(R.y,1);R.x=clamp(R.x,2);
656
  $('rz').value=R.z;$('ry').value=R.y;$('rx').value=R.x;$('zr').value=R.z;$('zv').textContent=fmt(R.z);
657
  const W=400,sc=W/Math.max(s.shape[1],s.shape[2]),H=Math.round(s.shape[1]*sc);
658
  const m=$('map');m.setAttribute('viewBox','0 0 '+W+' '+H);
659
  const nd=new Set(need(s,r).map(p=>p[0]));
660
  let h='<rect x="0" y="0" width="'+(s.shape[2]*sc)+'" height="'+H+'" fill="var(--card)" stroke="var(--line)"/>';
 
661
  s.parts.filter(p=>p[1][0][0]<=R.z&&R.z<p[1][0][1]).forEach(p=>{const[ , y,x]=p[1];const on=nd.has(p[0]);
662
  h+='<rect x="'+(x[0]*sc+1)+'" y="'+(y[0]*sc+1)+'" width="'+((x[1]-x[0])*sc-2)+'" height="'+((y[1]-y[0])*sc-2)+'" rx="4" fill="'+(on?'var(--accent)':'var(--bg2)')+'" fill-opacity="'+(on?.28:1)+'" stroke="'+(on?'var(--accent)':'var(--ink3)')+'" stroke-opacity="'+(on?1:.5)+'"/>'+
663
  '<text x="'+((x[0]+x[1])/2*sc)+'" y="'+((y[0]+y[1])/2*sc+4)+'" text-anchor="middle" font-size="11" font-family="JetBrains Mono,monospace" fill="var(--ink2)">t'+p[0]+'</text>'});
664
  h+='<rect x="'+((R.x-r)*sc)+'" y="'+((R.y-r)*sc)+'" width="'+(2*r*sc)+'" height="'+(2*r*sc)+'" fill="none" stroke="var(--ink)" stroke-width="1.5" stroke-dasharray="4 3"/><circle cx="'+(R.x*sc)+'" cy="'+(R.y*sc)+'" r="4" fill="var(--ink)"/>';
665
  m.innerHTML=h;m.dataset.sc=sc;
666
  const parts=need(s,r),bytes=parts.reduce((a,p)=>a+p[2],0)+s.fix,d=s.id.toLowerCase()+'-'+R.z+'-'+R.y+'-'+R.x;
667
+ $('rres').innerHTML=s.id+': your box touches <b>'+parts.length+'</b> of '+s.parts.length+' parts, <b>'+gb(bytes)+'</b> instead of '+gb(s.bytes)+'.<br>'+parts.map(p=>'<span class="pill">t'+p[0]+'</span>').join('');
668
  const lo=[R.z-r,R.y-r,R.x-r].map(v=>Math.max(0,v)),hi=[R.z+r,R.y+r,R.x+r].map((v,k)=>Math.min(s.shape[k]-1,v));
669
  const rows=f=>{const zs=[];for(let z=Math.floor(lo[0]/f);z<=Math.floor(hi[0]/f);z++)zs.push(z);return zs};
670
  const inc=['"*.json"','"*/.z*"'];
 
673
  const files=parts.map(p=>'parts/'+s.id+'-lasagna-t'+p[0]+'.tar').concat([s.id+'-lasagna-pyramid-fix.tar','SHA256SUMS','load_example.py']);
674
  $('rcode').innerHTML='<span class="c"># or from the dataset: whole parts for z, y, x = '+R.z+', '+R.y+', '+R.x+' 卤 '+r+' voxels</span>\nhf download '+s.repo+' \\\n '+files.join(' \\\n ')+' \\\n --repo-type dataset --local-dir '+d+'\ncd '+d+' && sha256sum -c --ignore-missing SHA256SUMS\nfor f in parts/*.tar; do tar -xf "$f"; done\ntar -xf '+s.id+'-lasagna-pyramid-fix.tar';
675
  $('rpy').innerHTML=py(s,R.z,R.y,R.x);}
 
676
  ['rz','ry','rx'].forEach((id,k)=>$(id).oninput=()=>{R['zyx'[k]]=+$(id).value||0;drawRegion()});
677
  $('rr').oninput=drawRegion;$('zr').oninput=()=>{R.z=+$('zr').value;drawRegion()};
678
  function mapAt(e){const m=$('map'),b=m.getBoundingClientRect(),vb=m.viewBox.baseVal,sc=+m.dataset.sc;
 
681
 
682
  /* copy */
683
  document.addEventListener('click',e=>{const b=e.target.closest('.copy');if(!b)return;
684
+ const t=$(b.dataset.copy).textContent;const done=()=>{b.textContent='Copied';toastOn();setTimeout(()=>{b.textContent='Copy';$('toast').classList.remove('on')},1200)};
685
  if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(t).then(done,()=>fallback(t,done));else fallback(t,done)});
686
  function fallback(t,done){const a=document.createElement('textarea');a.value=t;document.body.appendChild(a);a.select();try{document.execCommand('copy');done()}catch(e){}a.remove()}
687