bobleesj commited on
Commit
a3b9716
·
verified ·
1 Parent(s): 17e068c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +25 -46
README.md CHANGED
@@ -1,19 +1,21 @@
1
  ---
2
- language: en
3
  license: cc-by-4.0
 
 
 
4
  tags:
5
  - electron-microscopy
6
- - 4d-stem
7
  - materials-science
8
  - quantem
9
- pretty_name: quantem example datasets
10
  size_categories:
11
  - 1K<n<10K
12
  ---
13
 
14
  # quantem-data
15
 
16
- Real electron microscopy datasets for [quantem](https://github.com/electronmicroscopy/quantem) widgets.
17
 
18
  ## Install
19
 
@@ -21,59 +23,36 @@ Real electron microscopy datasets for [quantem](https://github.com/electronmicro
21
  pip install quantem-data
22
  ```
23
 
24
- ## Quick start
25
 
26
  ```python
27
  from quantem.data import load
28
  from quantem.widget import Show4DSTEM, Show2D
29
 
30
- # 4D-STEM dataset (9 MB, downloads once)
31
- data = load("arina_32x32_48x48")
32
- Show4DSTEM(data, scan_shape=(32, 32))
33
 
34
- # Bright-field image (64 KB)
35
- bf = load("arina_bf_128x128")
36
- Show2D(bf)
37
  ```
38
 
39
- ## Available datasets
40
 
41
- | Name | Technique | Shape | Size |
42
- |------|-----------|-------|------|
43
- | `arina_32x32_48x48` | 4D-STEM | (32,32,48,48) | 9 MB |
44
- | `arina_64x64_96x96` | 4D-STEM | (64,64,96,96) | 144 MB |
45
- | `arina_bf_128x128` | Image | (128,128) | 64 KB |
46
- | `arina_mean_dp_96x96` | Diffraction | (96,96) | 36 KB |
47
 
48
- ## Technique folders
 
 
 
 
 
 
 
49
 
50
- | Folder | Data type | Status |
51
- |--------|-----------|--------|
52
- | `4dstem/` | 4D-STEM diffraction | ✅ Data available |
53
- | `hrtem/` | High-resolution TEM | 📭 Accepting contributions |
54
- | `eels/` | Electron energy loss | 📭 Accepting contributions |
55
- | `tomo/` | Tomography | 📭 Accepting contributions |
56
- | `diffraction/` | Diffraction patterns | ✅ Data available |
57
- | `image/` | Virtual/derived images | ✅ Data available |
58
- | `complex/` | Ptychography | 📭 Accepting contributions |
59
- | `raw/` | Original instrument files | 📭 Accepting contributions |
60
 
61
- ## Contributing data
62
 
63
- ```python
64
- from quantem.data import upload
65
-
66
- upload(
67
- my_array,
68
- name="mos2_monolayer",
69
- technique="4dstem",
70
- description="Monolayer MoS2, 80 keV, Medipix3",
71
- contributor="Your Name",
72
- )
73
- ```
74
-
75
- **Naming convention**: `{material}_{descriptor}` — lowercase, underscores only. Material first (e.g. `silicon_110`, `graphene_pristine`). See the [quantem.data README](https://github.com/bobleesj/quantem.data) for full guidelines.
76
-
77
- ## License
78
 
79
- All datasets are shared under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) unless otherwise noted in the dataset metadata.
 
1
  ---
 
2
  license: cc-by-4.0
3
+ task_categories:
4
+ - image-classification
5
+ - image-segmentation
6
  tags:
7
  - electron-microscopy
8
+ - 4D-STEM
9
  - materials-science
10
  - quantem
11
+ pretty_name: quantem-data
12
  size_categories:
13
  - 1K<n<10K
14
  ---
15
 
16
  # quantem-data
17
 
18
+ Real electron microscopy datasets for [quantem.widget](https://github.com/bobleesj/quantem.widget) and [quantem](https://github.com/electronmicroscopy/quantem).
19
 
20
  ## Install
21
 
 
23
  pip install quantem-data
24
  ```
25
 
26
+ ## Quick Start
27
 
28
  ```python
29
  from quantem.data import load
30
  from quantem.widget import Show4DSTEM, Show2D
31
 
32
+ # 4D-STEM dataset (9 MB, cached locally)
33
+ Show4DSTEM(load("arina_32x32_48x48"), scan_shape=(32, 32))
 
34
 
35
+ # Bright-field image
36
+ Show2D(load("arina_bf_128x128"))
 
37
  ```
38
 
39
+ ## Folder Structure
40
 
41
+ Mirrors the [quantem](https://github.com/electronmicroscopy/quantem) module structure:
 
 
 
 
 
42
 
43
+ | Folder | quantem module | Data types | Widget |
44
+ |--------|---------------|------------|--------|
45
+ | `diffraction/` | `quantem.diffraction` | 4D-STEM, CBED, single DPs | Show4DSTEM, Show4D, Show2D |
46
+ | `diffractive_imaging/` | `quantem.diffractive_imaging` | Ptychography reconstructions | ShowComplex2D |
47
+ | `imaging/` | `quantem.imaging` | HRTEM, BF/DF, virtual images | Show2D, Show3D, Mark2D |
48
+ | `spectroscopy/` | `quantem.spectroscopy` | EELS, EDX spectra | Show1D |
49
+ | `tomography/` | `quantem.tomography` | Tilt series, 3D volumes | Show3DVolume, Show3D |
50
+ | `raw/` | — | Original instrument files | — |
51
 
52
+ ## Metadata
 
 
 
 
 
 
 
 
 
53
 
54
+ Every `.npy` file has a paired `.json` sidecar with structured metadata (schema, shape, attribution, calibration).
55
 
56
+ ## Contributing
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
 
58
+ Upload via Python API or CLI. See [quantem.data docs](https://github.com/bobleesj/quantem.data).