Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,19 +1,21 @@
|
|
| 1 |
---
|
| 2 |
-
language: en
|
| 3 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
|
| 4 |
tags:
|
| 5 |
- electron-microscopy
|
| 6 |
-
-
|
| 7 |
- materials-science
|
| 8 |
- quantem
|
| 9 |
-
pretty_name: quantem
|
| 10 |
size_categories:
|
| 11 |
- 1K<n<10K
|
| 12 |
---
|
| 13 |
|
| 14 |
# quantem-data
|
| 15 |
|
| 16 |
-
Real electron microscopy datasets for [quantem](https://github.com/
|
| 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
|
| 25 |
|
| 26 |
```python
|
| 27 |
from quantem.data import load
|
| 28 |
from quantem.widget import Show4DSTEM, Show2D
|
| 29 |
|
| 30 |
-
# 4D-STEM dataset (9 MB,
|
| 31 |
-
|
| 32 |
-
Show4DSTEM(data, scan_shape=(32, 32))
|
| 33 |
|
| 34 |
-
# Bright-field image
|
| 35 |
-
|
| 36 |
-
Show2D(bf)
|
| 37 |
```
|
| 38 |
|
| 39 |
-
##
|
| 40 |
|
| 41 |
-
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
-
|
| 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 |
-
|
| 62 |
|
| 63 |
-
|
| 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 |
-
|
|
|
|
| 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).
|