The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: ValueError
Message: Expected object or value
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 246, in _generate_tables
pa_table = paj.read_json(
^^^^^^^^^^^^^^
File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to number in row 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
return get_rows(
^^^^^^^^^
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2227, in __iter__
for key, pa_table in self._iter_arrow():
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2251, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 260, in _generate_tables
batch = json_encode_fields_in_json_lines(original_batch, json_field_paths)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/utils/json.py", line 106, in json_encode_fields_in_json_lines
examples = [ujson_loads(line) for line in original_batch.splitlines()]
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/utils/json.py", line 20, in ujson_loads
return pd.io.json.ujson_loads(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Expected object or valueNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Microscopy Hackathon Data — Kalinin Group
A multi-modality, multi-instrument STEM corpus assembled from 10 published Zenodo deposits plus one plasmonic EELS dataset, normalized into ML-ready HDF5 with full provenance retained.
Layout
processed/ # decoded acquisitions, one .h5 + .json sidecar each
haadf_2d/ # 64 HAADF-STEM images
eels/ # 13 EELS spectra and spectrum images
stem_edx_si/ # 2 EDX spectrum image survey cubes
stem_4d/ # 3 4D-STEM diffraction stacks
plasmonic_eels/ # 12 plasmonic EELS spectrum images (split from one source)
metadata/
inventory.parquet # full file index with DOI, modality, shape, dtype, pixel size
inventory.csv # same, CSV
missing_payloads.md # provenance ledger covering all 10 source DOIs
batch_decode_log.json # what was decoded, deduplicated, or flagged partial
acquisition_parameter_coverage.csv # per-HAADF coverage of 7 standard acquisition params
DOI_to_Raw_Folder_Mapping.md
How to load
import h5py, json
from pathlib import Path
f = Path("processed/haadf_2d/from_AH__graphene__dset2__0045_-_20240404_STEM_2.72_nm.emd.h5")
with h5py.File(f, "r") as h:
image = h["data"][...] # (H, W, T) for HAADF
pixel_nm = h.attrs.get("pixel_size_nm")
prov = json.loads(f.with_suffix(".json").read_text())
print(prov["doi"], prov["dataset_name"], prov["modality"])
Each .json sidecar carries: source_rel_path, source_size_bytes, doi, dataset_name, modality, decoder, conversion_timestamp, pixel_size_nm, dwell_time_s, frame_time_s, shape, dtype, n_frames, and the complete vendor metadata in a vendor_metadata field:
- For Velox EMDs: a list of per-frame metadata dicts (one per frame in the acquisition), with all top-level Velox sections preserved (
Core,Instrument,Acquisition,Optics,EnergyFilter,Stage,Scan,Vacuum,Detectors,BinaryResult,Sample,GasInjectionSystems,CustomProperties). - For Gatan DM3/DM4: rsciio's full
metadataandoriginal_metadatadicts for the primary signal, plus shape/metadata for any secondary signals in the file. - For MRC: full header struct.
The same content is also stored inside each .h5 file as a vendor_metadata_json string dataset, so consumers don't need the sidecar to access it.
Provenance
| Dataset | DOI | n files |
|---|---|---|
| Plasmonic EELS | 10.5281/zenodo.20131814 |
1 source → 12 acquisitions |
| Graphene Dataset 2 | 10.5281/zenodo.20040988 |
16 |
| Graphene Dataset 1 | 10.5281/zenodo.19965490 |
5 |
| aBN-encapsulated Graphene | 10.5281/zenodo.20131420 |
26 |
| aBN-encapsulated Oxidised Graphene | 10.5281/zenodo.20131691 |
20 |
| aBN-encapsulated MoS2 | 10.5281/zenodo.20131712 |
53 |
| SnSe HAADF | 10.5281/zenodo.19963421 |
2 |
| MoS2 Monolayer Y-implanted | 10.5281/zenodo.19963879 |
7 |
| CoAg | 10.5281/zenodo.20131365 |
8 |
| SiN-Au | 10.5281/zenodo.20131796 |
2 |
32 additional files from a 2024-10-05 session (aBN-MoS2 unsintered + 4D-STEM + EELS) are included without a DOI; see metadata/missing_payloads.md.
Decoding notes
- Velox EMD pixel pitch is read from
BinaryResult.PixelSize+BinaryResult.PixelUnitX. TheN nm/N µmtoken in Velox filenames is the field of view, not the pitch. - Gatan
.dm3/.dm4are read viarsciio.digitalmicrograph. Files whosesignal_typereads "EELS" are routed toprocessed/eels/regardless of filename (inventory_modalityin the sidecar preserves the original guess). - MRC read via
mrcfile. The single 4D-STEM acquisition is shape(782, 256, 256)int16. - Kevin's plasmonic NPY is a pickled dict of 12 sub-acquisitions, one per top-level key, decoded with
allow_pickle=True. - Velox EMDs were deduplicated by the image dataset UUID under
Data/Image/<uuid>/Data; duplicate source paths are preserved asduplicate_source_rel_pathson the canonical output. - Acquisitions with image dims smaller than 128 px are flagged
partial: truein the sidecar.
License
Each underlying Zenodo deposit retains its original license. See the DOI on each file's sidecar for the source. Code in scripts/ is provided under the same terms as the parent repository.
Acquisition-parameter coverage for HAADF
metadata/acquisition_parameter_coverage.csv reports, for each HAADF acquisition, which of seven standard acquisition parameters (pixel size, dwell time, convergence angle, beam current, gain, offset, inner collection angle) were recoverable from the source file. Useful when sub-selecting samples for any analysis that needs a complete parameter vector.
- Downloads last month
- 28