midas-plotting 0.3.0__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/PKG-INFO +4 -3
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/README.md +2 -2
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting/__init__.py +3 -3
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting/cli.py +16 -1
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting/ff.py +1 -1
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting/grains.py +1 -1
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting.egg-info/PKG-INFO +4 -3
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting.egg-info/requires.txt +1 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/pyproject.toml +2 -1
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting/ipf.py +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting/laue.py +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting/maps.py +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting/mic.py +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting/solutions.py +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting.egg-info/SOURCES.txt +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting.egg-info/dependency_links.txt +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting.egg-info/entry_points.txt +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/midas_plotting.egg-info/top_level.txt +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/setup.cfg +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/tests/test_ff.py +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/tests/test_ipf.py +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/tests/test_laue.py +0 -0
- {midas_plotting-0.3.0 → midas_plotting-0.3.2}/tests/test_mic.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: midas-plotting
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Standard plots for MIDAS reconstructions - near-field, far-field and Laue: IPF maps and legends, grain maps, pole figures, strain and size distributions, and Laue texture diagnostics against their chance levels.
|
|
5
5
|
Author-email: Hemant Sharma <hsharma@anl.gov>
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -11,6 +11,7 @@ Classifier: Operating System :: OS Independent
|
|
|
11
11
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
12
12
|
Requires-Python: >=3.9
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
|
+
Requires-Dist: midas-params>=0.9.0
|
|
14
15
|
Requires-Dist: numpy>=1.22
|
|
15
16
|
Requires-Dist: matplotlib>=3.5
|
|
16
17
|
Requires-Dist: midas-stress>=0.1
|
|
@@ -25,13 +26,13 @@ Standard plots for MIDAS reconstructions.
|
|
|
25
26
|
```python
|
|
26
27
|
from midas_plotting import read_mic, orientation_map, compare_maps
|
|
27
28
|
|
|
28
|
-
m = read_mic("
|
|
29
|
+
m = read_mic("sampleC_mr.2.mic")
|
|
29
30
|
print(m.summary())
|
|
30
31
|
orientation_map(m, space_group=225, cmin=0.3)
|
|
31
32
|
```
|
|
32
33
|
|
|
33
34
|
```bash
|
|
34
|
-
midas-plot
|
|
35
|
+
midas-plot sampleC.0.mic sampleC_sum3thr2.0.mic --kind orientation --cmin 0.3 \
|
|
35
36
|
--titles "baseline|sum3+thr2" -o compare.png
|
|
36
37
|
```
|
|
37
38
|
|
|
@@ -5,13 +5,13 @@ Standard plots for MIDAS reconstructions.
|
|
|
5
5
|
```python
|
|
6
6
|
from midas_plotting import read_mic, orientation_map, compare_maps
|
|
7
7
|
|
|
8
|
-
m = read_mic("
|
|
8
|
+
m = read_mic("sampleC_mr.2.mic")
|
|
9
9
|
print(m.summary())
|
|
10
10
|
orientation_map(m, space_group=225, cmin=0.3)
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
midas-plot
|
|
14
|
+
midas-plot sampleC.0.mic sampleC_sum3thr2.0.mic --kind orientation --cmin 0.3 \
|
|
15
15
|
--titles "baseline|sum3+thr2" -o compare.png
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Standard plots for MIDAS reconstructions.
|
|
2
2
|
|
|
3
3
|
from midas_plotting import read_mic, orientation_map
|
|
4
|
-
orientation_map("
|
|
4
|
+
orientation_map("sampleC.0.mic", space_group=225, cmin=0.3)
|
|
5
5
|
|
|
6
6
|
Far-field ``Grains.csv`` lives in the ``ff`` submodule::
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ Laue microdiffraction lives in ``laue``, and reads the indexer's text output::
|
|
|
26
26
|
|
|
27
27
|
or from the shell::
|
|
28
28
|
|
|
29
|
-
midas-plot
|
|
29
|
+
midas-plot sampleC.0.mic --kind orientation --cmin 0.3 --sg 225
|
|
30
30
|
midas-plot Grains.csv --kind summary
|
|
31
31
|
|
|
32
32
|
Written after the same IPF colouring, .mic parsing and map plotting were
|
|
@@ -48,7 +48,7 @@ from .solutions import (
|
|
|
48
48
|
)
|
|
49
49
|
from .mic import MicMap, read_mic
|
|
50
50
|
|
|
51
|
-
__version__ = "0.3.
|
|
51
|
+
__version__ = "0.3.2"
|
|
52
52
|
__all__ = [
|
|
53
53
|
"MicMap", "read_mic", "GrainList", "read_grains", "ff", "laue",
|
|
54
54
|
"LaueSolutions", "LaueSpots", "read_solutions", "read_spots",
|
|
@@ -4,9 +4,24 @@ from __future__ import annotations
|
|
|
4
4
|
import argparse
|
|
5
5
|
from pathlib import Path
|
|
6
6
|
|
|
7
|
+
# ── MIDAS preflight: richer argument errors when midas-params is installed ───
|
|
8
|
+
_MIDAS_DIST = "midas-plotting"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _midas_make_parser(*a, **kw):
|
|
12
|
+
"""ArgumentParser factory. Uses midas_params' subclass when available so
|
|
13
|
+
argument errors carry the running version and a did-you-mean; falls back to
|
|
14
|
+
stock argparse otherwise, so this stays an optional dependency."""
|
|
15
|
+
try:
|
|
16
|
+
from midas_params.preflight import MidasArgumentParser
|
|
17
|
+
except Exception:
|
|
18
|
+
return argparse.ArgumentParser(*a, **kw)
|
|
19
|
+
return MidasArgumentParser(*a, package=_MIDAS_DIST, **kw)
|
|
20
|
+
|
|
21
|
+
|
|
7
22
|
|
|
8
23
|
def main(argv=None) -> int:
|
|
9
|
-
ap =
|
|
24
|
+
ap = _midas_make_parser(
|
|
10
25
|
prog="midas-plot",
|
|
11
26
|
description="Standard MIDAS reconstruction maps (orientation, "
|
|
12
27
|
"confidence, grains).")
|
|
@@ -13,7 +13,7 @@ takes an optional ``ax``, and returns the axes -- matching
|
|
|
13
13
|
Two things worth knowing before reading any of these plots:
|
|
14
14
|
|
|
15
15
|
* **Grain positions are good to ~100 µm**, not to the six decimals
|
|
16
|
-
``Grains.csv`` prints (``
|
|
16
|
+
``Grains.csv`` prints (``manuals/ff-hedm/LAB_NOTEBOOK.md`` §2d). Do not over-read
|
|
17
17
|
small spatial structure.
|
|
18
18
|
* **``GrainRadius`` is only correct with ``midas-process-grains >= 0.6.1``.**
|
|
19
19
|
Older versions report approximately the sample-wide mean radius for *every*
|
|
@@ -49,7 +49,7 @@ class GrainList:
|
|
|
49
49
|
pos : (N, 3) float
|
|
50
50
|
Grain centre-of-mass X, Y, Z in **micrometres**. Trustworthy to about
|
|
51
51
|
~100 µm on a typical reconstruction -- do not read the six decimals the
|
|
52
|
-
file prints (``
|
|
52
|
+
file prints (``manuals/ff-hedm/LAB_NOTEBOOK.md`` §2d).
|
|
53
53
|
euler : (N, 3) float
|
|
54
54
|
Bunge ZXZ Euler angles in **radians**, matching the ``.mic`` convention
|
|
55
55
|
so :func:`midas_plotting.ipf_rgb` accepts them directly.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: midas-plotting
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Standard plots for MIDAS reconstructions - near-field, far-field and Laue: IPF maps and legends, grain maps, pole figures, strain and size distributions, and Laue texture diagnostics against their chance levels.
|
|
5
5
|
Author-email: Hemant Sharma <hsharma@anl.gov>
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -11,6 +11,7 @@ Classifier: Operating System :: OS Independent
|
|
|
11
11
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
12
12
|
Requires-Python: >=3.9
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
|
+
Requires-Dist: midas-params>=0.9.0
|
|
14
15
|
Requires-Dist: numpy>=1.22
|
|
15
16
|
Requires-Dist: matplotlib>=3.5
|
|
16
17
|
Requires-Dist: midas-stress>=0.1
|
|
@@ -25,13 +26,13 @@ Standard plots for MIDAS reconstructions.
|
|
|
25
26
|
```python
|
|
26
27
|
from midas_plotting import read_mic, orientation_map, compare_maps
|
|
27
28
|
|
|
28
|
-
m = read_mic("
|
|
29
|
+
m = read_mic("sampleC_mr.2.mic")
|
|
29
30
|
print(m.summary())
|
|
30
31
|
orientation_map(m, space_group=225, cmin=0.3)
|
|
31
32
|
```
|
|
32
33
|
|
|
33
34
|
```bash
|
|
34
|
-
midas-plot
|
|
35
|
+
midas-plot sampleC.0.mic sampleC_sum3thr2.0.mic --kind orientation --cmin 0.3 \
|
|
35
36
|
--titles "baseline|sum3+thr2" -o compare.png
|
|
36
37
|
```
|
|
37
38
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "midas-plotting"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.2"
|
|
8
8
|
description = "Standard plots for MIDAS reconstructions - near-field, far-field and Laue: IPF maps and legends, grain maps, pole figures, strain and size distributions, and Laue texture diagnostics against their chance levels."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "BSD-3-Clause" }
|
|
@@ -20,6 +20,7 @@ classifiers = [
|
|
|
20
20
|
"Topic :: Scientific/Engineering :: Physics",
|
|
21
21
|
]
|
|
22
22
|
dependencies = [
|
|
23
|
+
"midas-params>=0.9.0", # preflight: CLI errors + path checks
|
|
23
24
|
"numpy>=1.22",
|
|
24
25
|
"matplotlib>=3.5",
|
|
25
26
|
"midas-stress>=0.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|