DefDAP 0.93.6__tar.gz → 1.0.0__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.
- defdap-1.0.0/.gitattributes +12 -0
- defdap-1.0.0/.github/workflows/test.yml +29 -0
- defdap-1.0.0/.gitignore +38 -0
- defdap-1.0.0/.pytest.ini +3 -0
- defdap-1.0.0/.readthedocs.yml +13 -0
- defdap-1.0.0/CHANGELOG.md +184 -0
- defdap-1.0.0/CODEOWNERS +1 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/DefDAP.egg-info/PKG-INFO +40 -9
- defdap-1.0.0/DefDAP.egg-info/SOURCES.txt +79 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/DefDAP.egg-info/requires.txt +4 -3
- {DefDAP-0.93.6 → defdap-1.0.0}/PKG-INFO +40 -9
- {DefDAP-0.93.6 → defdap-1.0.0}/README.md +1 -3
- {DefDAP-0.93.6 → defdap-1.0.0}/defdap/__init__.py +7 -1
- defdap-1.0.0/defdap/_accelerated.py +163 -0
- defdap-1.0.0/defdap/_version.py +1 -0
- defdap-1.0.0/defdap/base.py +1204 -0
- defdap-1.0.0/defdap/crystal.py +497 -0
- defdap-1.0.0/defdap/crystal_utils.py +412 -0
- defdap-1.0.0/defdap/ebsd.py +1917 -0
- defdap-1.0.0/defdap/experiment.py +353 -0
- defdap-1.0.0/defdap/file_readers.py +956 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/defdap/file_writers.py +6 -6
- defdap-1.0.0/defdap/hrdic.py +894 -0
- defdap-1.0.0/defdap/inspector.py +669 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/defdap/plotting.py +517 -447
- {DefDAP-0.93.6 → defdap-1.0.0}/defdap/quat.py +340 -332
- defdap-1.0.0/defdap/utils.py +453 -0
- defdap-1.0.0/docs/Makefile +33 -0
- defdap-1.0.0/docs/README.md +24 -0
- defdap-1.0.0/docs/make.bat +35 -0
- defdap-1.0.0/docs/source/_static/branches.png +0 -0
- defdap-1.0.0/docs/source/_static/logo.png +0 -0
- defdap-1.0.0/docs/source/_static/sample_ebsd.jpg +0 -0
- defdap-1.0.0/docs/source/_templates/layout.html +6 -0
- defdap-1.0.0/docs/source/conf.py +185 -0
- defdap-1.0.0/docs/source/contributing.rst +47 -0
- defdap-1.0.0/docs/source/index.rst +35 -0
- defdap-1.0.0/docs/source/installation.rst +14 -0
- defdap-1.0.0/docs/source/license.rst +5 -0
- defdap-1.0.0/docs/source/modules.rst +9 -0
- defdap-1.0.0/docs/source/papers.rst +107 -0
- defdap-1.0.0/notebooks/example_notebook.ipynb +1516 -0
- defdap-1.0.0/notebooks/experiment.ipynb +145 -0
- defdap-1.0.0/notebooks/twin_boundaries.ipynb +256 -0
- defdap-1.0.0/scripts/GB_update.ipynb +371 -0
- defdap-1.0.0/scripts/nCorrToDavis.m +57 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/setup.py +12 -9
- defdap-1.0.0/tests/__init__.py +0 -0
- defdap-1.0.0/tests/data/expected_output/ebsd_grain_boundaries_10deg.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/ebsd_grain_boundaries_5deg.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/ebsd_grains_5deg_0.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/ebsd_grains_5deg_10.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/ebsd_grains_5deg_100.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/ebsd_grains_warped_5deg_0.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/ebsd_proxigram.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/hrdic_grain_boundaries_5deg.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/hrdic_grains_floodfill_0.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/hrdic_grains_floodfill_10.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/hrdic_grains_floodfill_100.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/hrdic_grains_warp.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/hrdic_grains_warped-old.npz +0 -0
- defdap-1.0.0/tests/data/expected_output/hrdic_grains_warped.npz +0 -0
- defdap-1.0.0/tests/data/testDataDIC.txt +60001 -0
- defdap-1.0.0/tests/data/testDataEBSD.cpr +69 -0
- defdap-1.0.0/tests/data/testDataEBSD.crc +0 -0
- defdap-1.0.0/tests/data/testDataEBSD.ctf +87252 -0
- defdap-1.0.0/tests/data/testDataPat.bmp +0 -0
- defdap-1.0.0/tests/test_ebsd.py +304 -0
- defdap-1.0.0/tests/test_hrdic.py +301 -0
- defdap-1.0.0/tests/test_io.py +185 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/tests/test_quat.py +175 -52
- DefDAP-0.93.6/DefDAP.egg-info/SOURCES.txt +0 -30
- DefDAP-0.93.6/defdap/_version.py +0 -1
- DefDAP-0.93.6/defdap/base.py +0 -1058
- DefDAP-0.93.6/defdap/crystal.py +0 -727
- DefDAP-0.93.6/defdap/ebsd.py +0 -1937
- DefDAP-0.93.6/defdap/file_readers.py +0 -627
- DefDAP-0.93.6/defdap/hrdic.py +0 -1191
- DefDAP-0.93.6/defdap/inspector.py +0 -625
- DefDAP-0.93.6/defdap/utils.py +0 -69
- DefDAP-0.93.6/tests/test_ebsd.py +0 -133
- DefDAP-0.93.6/tests/test_hrdic.py +0 -76
- DefDAP-0.93.6/tests/test_io.py +0 -162
- {DefDAP-0.93.6 → defdap-1.0.0}/DefDAP.egg-info/dependency_links.txt +0 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/DefDAP.egg-info/top_level.txt +0 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/LICENSE +0 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/defdap/slip_systems/cubic_bcc.txt +0 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/defdap/slip_systems/cubic_bcc_110only.txt +0 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/defdap/slip_systems/cubic_fcc.txt +0 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/defdap/slip_systems/cubic_fcc_damask.txt +0 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/defdap/slip_systems/hexagonal_noca.txt +0 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/defdap/slip_systems/hexagonal_withca.txt +0 -0
- {DefDAP-0.93.6 → defdap-1.0.0}/setup.cfg +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Set the default behavior, in case people don't have core.autocrlf set.
|
|
2
|
+
* text=auto
|
|
3
|
+
|
|
4
|
+
# Explicitly declare text files you want to always be normalized and converted
|
|
5
|
+
# to native line endings on checkout.
|
|
6
|
+
*.py text
|
|
7
|
+
|
|
8
|
+
# Declare files that will always have CRLF line endings on checkout.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# Denote all files that are truly binary and should not be modified.
|
|
12
|
+
*.ipynb binary
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Test DefDAP
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
strategy:
|
|
10
|
+
fail-fast: false
|
|
11
|
+
matrix:
|
|
12
|
+
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
17
|
+
uses: actions/setup-python@v2
|
|
18
|
+
with:
|
|
19
|
+
python-version: ${{ matrix.python-version }}
|
|
20
|
+
- name: Install dependencies
|
|
21
|
+
run: |
|
|
22
|
+
python -m pip install --upgrade pip
|
|
23
|
+
python -m pip install --upgrade pytest
|
|
24
|
+
python -m pip install .[testing]
|
|
25
|
+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
26
|
+
|
|
27
|
+
- name: Test with pytest
|
|
28
|
+
run: |
|
|
29
|
+
pytest
|
defdap-1.0.0/.gitignore
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# OS generated files
|
|
2
|
+
.DS_Store
|
|
3
|
+
.DS_Store?
|
|
4
|
+
._*
|
|
5
|
+
.Spotlight-V100
|
|
6
|
+
.Trashes
|
|
7
|
+
ehthumbs.db
|
|
8
|
+
Thumbs.db
|
|
9
|
+
|
|
10
|
+
# Python generated files
|
|
11
|
+
__pycache__
|
|
12
|
+
*.pyc
|
|
13
|
+
|
|
14
|
+
# ipython generated files
|
|
15
|
+
.ipynb_checkpoints
|
|
16
|
+
|
|
17
|
+
# Intellij IDE files
|
|
18
|
+
.idea/
|
|
19
|
+
|
|
20
|
+
# Python Virtual Environment
|
|
21
|
+
venv/
|
|
22
|
+
|
|
23
|
+
# Sphinx docs build
|
|
24
|
+
docs/build
|
|
25
|
+
# Sphinx autogenerated API documentation
|
|
26
|
+
docs/source/defdap
|
|
27
|
+
|
|
28
|
+
# Pip install
|
|
29
|
+
DefDAP.egg-info/
|
|
30
|
+
|
|
31
|
+
# pytest
|
|
32
|
+
.pytest_cache
|
|
33
|
+
|
|
34
|
+
# coverage
|
|
35
|
+
.coverage
|
|
36
|
+
|
|
37
|
+
# vscode
|
|
38
|
+
.vscode
|
defdap-1.0.0/.pytest.ini
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## Current
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 1.0.0 (05-11-2025)
|
|
15
|
+
This was a overhaul of large sections of the code and many changes/additions have been missed from the chnagelog.
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- Each grain is assigned a phase and slip systems are automatically loaded
|
|
19
|
+
for a given phase based on crystal structure.
|
|
20
|
+
- This means that unit cells and slip traces plot correctly for grains
|
|
21
|
+
in a multi-phase EBSD map
|
|
22
|
+
- Add slip system file for FCC but in same order as DAMASK
|
|
23
|
+
- Use example_notebook to generate a 'How To Use' page in the documentation
|
|
24
|
+
- Add reader for EDAX .ang EBSD files, pyvale .csv files and openPIV-XL .npx files
|
|
25
|
+
- Added a `plot_map` function for grains
|
|
26
|
+
- Added more testing
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- All functions and arguments are now in snake_case instead of CamelCase
|
|
30
|
+
- Cropping and masking are now performed upon access to data
|
|
31
|
+
- Changed function names from CamelCase to snake_case
|
|
32
|
+
- Overhaul of data storage in the Map classes
|
|
33
|
+
- RDR calculation `calcRDR` in grain inspector is faster and more robust
|
|
34
|
+
- Improve formatting of grain inspector and RDR plot window
|
|
35
|
+
- Refactor boundary lines calculations
|
|
36
|
+
- Use GitHub actions to run `pytest` on commit push or pull request
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
- Fix bug in grain inspector (`None` passed to `corrAngle` inadvertently)
|
|
40
|
+
- Fix EBSD grain linker
|
|
41
|
+
- Remove `IPython` and `jupyter` as requirements
|
|
42
|
+
- Bug in IPF traiangle plotting now fixed with options for `up` triangle (like MTEX) and `down` triangle (like OI)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## 0.93.5 (20-11-2023)
|
|
46
|
+
|
|
47
|
+
### Added
|
|
48
|
+
- Add more options for colouring lines
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
- Fix bug with accessing slip systems in grain inspector
|
|
52
|
+
- Replace np.float with python float
|
|
53
|
+
- Remove in_place argument to skimage.morphology.remove_small_objects
|
|
54
|
+
- set_window_title has been moved from figure.canvas to figure.canvas.manager
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## 0.93.5 (20-11-2023)
|
|
58
|
+
|
|
59
|
+
### Added
|
|
60
|
+
- Add more options for colouring lines
|
|
61
|
+
|
|
62
|
+
### Fixed
|
|
63
|
+
- Fix bug with accessing slip systems in grain inspector
|
|
64
|
+
- Replace `np.float` with python `float`
|
|
65
|
+
- Remove `in_place` argument to `skimage.morphology.remove_small_objects`
|
|
66
|
+
- `set_window_title` has been moved from `figure.canvas` to `figure.canvas.manager`
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## 0.93.5 (17-01-2023)
|
|
70
|
+
|
|
71
|
+
### Added
|
|
72
|
+
- Add equality check for `Quat`
|
|
73
|
+
|
|
74
|
+
### Fixed
|
|
75
|
+
- Fix bug in boundary line warping
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## 0.93.4 (07-03-2022)
|
|
79
|
+
|
|
80
|
+
### Changed
|
|
81
|
+
- Update BCC slip system file and add a separate FCC file with same ordering as in DAMASK
|
|
82
|
+
- Refactor boundary lines in `ebsd.map` class and add methods for warping lines to a DIC map
|
|
83
|
+
- Refactor `linkEbsdMap` method and pass all arguments to transform estimate method
|
|
84
|
+
- Remove IPython and jupyter as requirements
|
|
85
|
+
- Move slip systems to `Phase` class and load automatically based on crystal stucture
|
|
86
|
+
- Make Oxford bonary loader tolerate of unknown data fields
|
|
87
|
+
|
|
88
|
+
### Fixed
|
|
89
|
+
- Fix ebsd grain linker so it works again
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## 0.93.3 (23-08-2021)
|
|
93
|
+
|
|
94
|
+
### Added
|
|
95
|
+
- Store EDX data as a dictionary called `EDX` accessible from the EBSD `Map` object
|
|
96
|
+
- Add option to change IPF map background colour
|
|
97
|
+
|
|
98
|
+
### Fixed
|
|
99
|
+
- Fix bug with reading cpr EBSD file without EDX data
|
|
100
|
+
- Fix issue with plotting Schmid factor maps
|
|
101
|
+
- Fix bug with maps `component` not updating after masking
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## 0.93.2 (16-04-2021)
|
|
105
|
+
|
|
106
|
+
### Added
|
|
107
|
+
- Reading of Channel5 project files that contain EDX data
|
|
108
|
+
|
|
109
|
+
### Fixed
|
|
110
|
+
- Plotting unit cells
|
|
111
|
+
- Plotting lines with grain inspector
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## 0.93.1 (12-04-2021)
|
|
115
|
+
|
|
116
|
+
### Added
|
|
117
|
+
- Started adding type hinting
|
|
118
|
+
- Add save/load support to grainInspector
|
|
119
|
+
- Add `drawLineProfile` function. Click and drag a line, then plot an intensity profile across the line
|
|
120
|
+
|
|
121
|
+
### Changed
|
|
122
|
+
- Speed up EBSD map data rotation
|
|
123
|
+
- Speed up `warp` grain finding
|
|
124
|
+
- Store band slope and MAD arrays from EBSD
|
|
125
|
+
- Update `nCorrToDavis.m` script
|
|
126
|
+
- Better description of how to use the function
|
|
127
|
+
- Sub-window size is subset radius * 2, as defined in nCorr
|
|
128
|
+
- Subset spacing is subset spacing, as defined in nCorr
|
|
129
|
+
- Generate phase boundary points and lines at same time as grain boundaries
|
|
130
|
+
- Improve histogram plotting
|
|
131
|
+
- Options for scatter (as before), `step` and `bar`
|
|
132
|
+
- Options for `logx`, `logy`, `loglog` and `linear`
|
|
133
|
+
- Updates to example notebook
|
|
134
|
+
|
|
135
|
+
### Fixed
|
|
136
|
+
- Fixed docstring links
|
|
137
|
+
- Fix bug in `warp` grain finding algorithm
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
## 0.93.0 (20-02-2021)
|
|
141
|
+
|
|
142
|
+
### Added
|
|
143
|
+
- Add EBSD file writing to CTF format.
|
|
144
|
+
- Add cretation of EBSD maps from runtime data.
|
|
145
|
+
- Add method to generate all slip systems in a family from a single system.
|
|
146
|
+
- Add grouping of slip systems by family.
|
|
147
|
+
- Add mechanism to define default parameter values stored in single loaction.
|
|
148
|
+
- Add basic filtering for HRDIC maps.
|
|
149
|
+
- Filtering based on threshold of effective shear strain and subsequent binary dilation.
|
|
150
|
+
- All current DefDAP functions work with NaN, but the RDR might not work as expected.
|
|
151
|
+
- New grain finding algorithm for HRDIC map which warps the EBSD grain map.
|
|
152
|
+
- Add `addLegend` command to add a marker size legend to a pole plot.
|
|
153
|
+
- Add misorientation calculation between neighbouring EBSD grains.
|
|
154
|
+
- Add a `BoundarySegment` class to represent a section of grain boundary between 2 grain in an EBSD map. Objects of this class are assigned to edges of the neighbour network and contain all the boundary points between the grains.
|
|
155
|
+
- Add Kuwahara filter for EBSD map noise reduction.
|
|
156
|
+
- Add `shape` property to maps.
|
|
157
|
+
- Read EBSD phases from file.
|
|
158
|
+
- Add classes to represent phases and crystal structures.
|
|
159
|
+
|
|
160
|
+
### Changed
|
|
161
|
+
- Update progress reporting to print elapsed time.
|
|
162
|
+
- Speed up grain finding algorithm.
|
|
163
|
+
- Update plot IPF and Euler map to consider multiple phasess.
|
|
164
|
+
- Drop support of python 3.5.
|
|
165
|
+
- Update boundary and grain finding to consider phase boundaries.
|
|
166
|
+
- Assign a phase to each grain in an EBSD map.
|
|
167
|
+
- Change equality and hash of slip systems, slip plane and direction must now be equal (-ve allowed but not different norms).
|
|
168
|
+
- Update slip system plane and direction lables to have overbars - very fancy.
|
|
169
|
+
- Updates to example notebook.
|
|
170
|
+
- Change docs over to readthedocs.
|
|
171
|
+
- Move version number to own file.
|
|
172
|
+
- Update neighbour network to use grains as nodes.
|
|
173
|
+
- Store `grainID` in grain objects.
|
|
174
|
+
- Split plotGrainDataMap into separate array construction and plotting function.
|
|
175
|
+
- Update neighbour network construction to use new EBSD boundary definition.
|
|
176
|
+
- Update flood fill algorithm for grain finding in a EBSD map.
|
|
177
|
+
- Vertical and horizontal boundary pixels are now considered separately.
|
|
178
|
+
- Load phases from CTF file.
|
|
179
|
+
|
|
180
|
+
### Fixed
|
|
181
|
+
- Fix bug with comment and blank lines when reading CPR files.
|
|
182
|
+
- Fixes to quat class:
|
|
183
|
+
- Construction from axis/angle now in passive sense not just a conversion.
|
|
184
|
+
- Fix big with transform vector where -ve vector was returned in some cases due to intermediate quat being transformed to northern hemisphere.
|
defdap-1.0.0/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @mikesmic @rhysgt
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: DefDAP
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: A python library for correlating EBSD and HRDIC data.
|
|
5
5
|
Author: Michael D. Atkinson, Rhys Thomas, João Quinta da Fonseca
|
|
6
6
|
Author-email: michael.atkinson@manchester.ac.uk
|
|
@@ -16,18 +16,51 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
16
16
|
Classifier: Natural Language :: English
|
|
17
17
|
Classifier: Operating System :: OS Independent
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.8
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
23
|
Classifier: Framework :: IPython
|
|
24
24
|
Classifier: Framework :: Jupyter
|
|
25
25
|
Classifier: Framework :: Matplotlib
|
|
26
|
-
Requires-Python: >=3.
|
|
26
|
+
Requires-Python: >=3.8
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
Requires-Dist: scipy>=1.9
|
|
30
|
+
Requires-Dist: numpy
|
|
31
|
+
Requires-Dist: matplotlib>=3.0.0
|
|
32
|
+
Requires-Dist: scikit-image>=0.19
|
|
33
|
+
Requires-Dist: pandas
|
|
34
|
+
Requires-Dist: peakutils
|
|
35
|
+
Requires-Dist: matplotlib_scalebar
|
|
36
|
+
Requires-Dist: networkx
|
|
37
|
+
Requires-Dist: numba
|
|
28
38
|
Provides-Extra: testing
|
|
39
|
+
Requires-Dist: pytest<8; extra == "testing"
|
|
40
|
+
Requires-Dist: coverage; extra == "testing"
|
|
41
|
+
Requires-Dist: pytest-cov; extra == "testing"
|
|
42
|
+
Requires-Dist: pytest_cases; extra == "testing"
|
|
29
43
|
Provides-Extra: docs
|
|
30
|
-
|
|
44
|
+
Requires-Dist: sphinx==5.0.2; extra == "docs"
|
|
45
|
+
Requires-Dist: sphinx_rtd_theme==0.5.0; extra == "docs"
|
|
46
|
+
Requires-Dist: sphinx_autodoc_typehints==1.11.1; extra == "docs"
|
|
47
|
+
Requires-Dist: nbsphinx==0.9.3; extra == "docs"
|
|
48
|
+
Requires-Dist: ipykernel; extra == "docs"
|
|
49
|
+
Requires-Dist: pandoc; extra == "docs"
|
|
50
|
+
Requires-Dist: ipympl; extra == "docs"
|
|
51
|
+
Dynamic: author
|
|
52
|
+
Dynamic: author-email
|
|
53
|
+
Dynamic: classifier
|
|
54
|
+
Dynamic: description
|
|
55
|
+
Dynamic: description-content-type
|
|
56
|
+
Dynamic: keywords
|
|
57
|
+
Dynamic: license
|
|
58
|
+
Dynamic: license-file
|
|
59
|
+
Dynamic: project-url
|
|
60
|
+
Dynamic: provides-extra
|
|
61
|
+
Dynamic: requires-dist
|
|
62
|
+
Dynamic: requires-python
|
|
63
|
+
Dynamic: summary
|
|
31
64
|
|
|
32
65
|

|
|
33
66
|
#### A python library for correlating EBSD and HRDIC data.
|
|
@@ -48,7 +81,7 @@ License-File: LICENSE
|
|
|
48
81
|
|
|
49
82
|
## How to install
|
|
50
83
|
- DefDAP can be installed from PyPI using the command `pip install defdap`
|
|
51
|
-
- If you use conda as your package manager (https://www.anaconda.com/), the prerequisite packages that are available from anaconda can be installed using the command `conda install scipy numpy matplotlib scikit-image pandas networkx
|
|
84
|
+
- If you use conda as your package manager (https://www.anaconda.com/), the prerequisite packages that are available from anaconda can be installed using the command `conda install scipy numpy matplotlib scikit-image pandas networkx` (Anaconda3-2020.02 has been tested)
|
|
52
85
|
- For more information, see the [documentation](https://defdap.readthedocs.io/en/latest/installation.html)
|
|
53
86
|
|
|
54
87
|
## How to use
|
|
@@ -74,8 +107,6 @@ The software uses the following open source packages:
|
|
|
74
107
|
- [pandas](http://pandas.pydata.org)
|
|
75
108
|
- [peakutils](https://peakutils.readthedocs.io/en/latest/)
|
|
76
109
|
- [matplotlib_scalebar](https://pypi.org/project/matplotlib-scalebar/)
|
|
77
|
-
- [IPython](https://ipython.org/)
|
|
78
|
-
- [jupyter](https://jupyter.org/)
|
|
79
110
|
|
|
80
111
|
## License
|
|
81
112
|
[Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.gitattributes
|
|
2
|
+
.gitignore
|
|
3
|
+
.pytest.ini
|
|
4
|
+
.readthedocs.yml
|
|
5
|
+
CHANGELOG.md
|
|
6
|
+
CODEOWNERS
|
|
7
|
+
LICENSE
|
|
8
|
+
README.md
|
|
9
|
+
setup.py
|
|
10
|
+
.github/workflows/test.yml
|
|
11
|
+
DefDAP.egg-info/PKG-INFO
|
|
12
|
+
DefDAP.egg-info/SOURCES.txt
|
|
13
|
+
DefDAP.egg-info/dependency_links.txt
|
|
14
|
+
DefDAP.egg-info/requires.txt
|
|
15
|
+
DefDAP.egg-info/top_level.txt
|
|
16
|
+
defdap/__init__.py
|
|
17
|
+
defdap/_accelerated.py
|
|
18
|
+
defdap/_version.py
|
|
19
|
+
defdap/base.py
|
|
20
|
+
defdap/crystal.py
|
|
21
|
+
defdap/crystal_utils.py
|
|
22
|
+
defdap/ebsd.py
|
|
23
|
+
defdap/experiment.py
|
|
24
|
+
defdap/file_readers.py
|
|
25
|
+
defdap/file_writers.py
|
|
26
|
+
defdap/hrdic.py
|
|
27
|
+
defdap/inspector.py
|
|
28
|
+
defdap/plotting.py
|
|
29
|
+
defdap/quat.py
|
|
30
|
+
defdap/utils.py
|
|
31
|
+
defdap/slip_systems/cubic_bcc.txt
|
|
32
|
+
defdap/slip_systems/cubic_bcc_110only.txt
|
|
33
|
+
defdap/slip_systems/cubic_fcc.txt
|
|
34
|
+
defdap/slip_systems/cubic_fcc_damask.txt
|
|
35
|
+
defdap/slip_systems/hexagonal_noca.txt
|
|
36
|
+
defdap/slip_systems/hexagonal_withca.txt
|
|
37
|
+
docs/Makefile
|
|
38
|
+
docs/README.md
|
|
39
|
+
docs/make.bat
|
|
40
|
+
docs/source/conf.py
|
|
41
|
+
docs/source/contributing.rst
|
|
42
|
+
docs/source/index.rst
|
|
43
|
+
docs/source/installation.rst
|
|
44
|
+
docs/source/license.rst
|
|
45
|
+
docs/source/modules.rst
|
|
46
|
+
docs/source/papers.rst
|
|
47
|
+
docs/source/_static/branches.png
|
|
48
|
+
docs/source/_static/logo.png
|
|
49
|
+
docs/source/_static/sample_ebsd.jpg
|
|
50
|
+
docs/source/_templates/layout.html
|
|
51
|
+
notebooks/example_notebook.ipynb
|
|
52
|
+
notebooks/experiment.ipynb
|
|
53
|
+
notebooks/twin_boundaries.ipynb
|
|
54
|
+
scripts/GB_update.ipynb
|
|
55
|
+
scripts/nCorrToDavis.m
|
|
56
|
+
tests/__init__.py
|
|
57
|
+
tests/test_ebsd.py
|
|
58
|
+
tests/test_hrdic.py
|
|
59
|
+
tests/test_io.py
|
|
60
|
+
tests/test_quat.py
|
|
61
|
+
tests/data/testDataDIC.txt
|
|
62
|
+
tests/data/testDataEBSD.cpr
|
|
63
|
+
tests/data/testDataEBSD.crc
|
|
64
|
+
tests/data/testDataEBSD.ctf
|
|
65
|
+
tests/data/testDataPat.bmp
|
|
66
|
+
tests/data/expected_output/ebsd_grain_boundaries_10deg.npz
|
|
67
|
+
tests/data/expected_output/ebsd_grain_boundaries_5deg.npz
|
|
68
|
+
tests/data/expected_output/ebsd_grains_5deg_0.npz
|
|
69
|
+
tests/data/expected_output/ebsd_grains_5deg_10.npz
|
|
70
|
+
tests/data/expected_output/ebsd_grains_5deg_100.npz
|
|
71
|
+
tests/data/expected_output/ebsd_grains_warped_5deg_0.npz
|
|
72
|
+
tests/data/expected_output/ebsd_proxigram.npz
|
|
73
|
+
tests/data/expected_output/hrdic_grain_boundaries_5deg.npz
|
|
74
|
+
tests/data/expected_output/hrdic_grains_floodfill_0.npz
|
|
75
|
+
tests/data/expected_output/hrdic_grains_floodfill_10.npz
|
|
76
|
+
tests/data/expected_output/hrdic_grains_floodfill_100.npz
|
|
77
|
+
tests/data/expected_output/hrdic_grains_warp.npz
|
|
78
|
+
tests/data/expected_output/hrdic_grains_warped-old.npz
|
|
79
|
+
tests/data/expected_output/hrdic_grains_warped.npz
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
scipy
|
|
1
|
+
scipy>=1.9
|
|
2
2
|
numpy
|
|
3
3
|
matplotlib>=3.0.0
|
|
4
|
-
scikit-image
|
|
4
|
+
scikit-image>=0.19
|
|
5
5
|
pandas
|
|
6
6
|
peakutils
|
|
7
7
|
matplotlib_scalebar
|
|
8
8
|
networkx
|
|
9
|
+
numba
|
|
9
10
|
|
|
10
11
|
[docs]
|
|
11
12
|
sphinx==5.0.2
|
|
@@ -17,7 +18,7 @@ pandoc
|
|
|
17
18
|
ipympl
|
|
18
19
|
|
|
19
20
|
[testing]
|
|
20
|
-
pytest
|
|
21
|
+
pytest<8
|
|
21
22
|
coverage
|
|
22
23
|
pytest-cov
|
|
23
24
|
pytest_cases
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: DefDAP
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: A python library for correlating EBSD and HRDIC data.
|
|
5
5
|
Author: Michael D. Atkinson, Rhys Thomas, João Quinta da Fonseca
|
|
6
6
|
Author-email: michael.atkinson@manchester.ac.uk
|
|
@@ -16,18 +16,51 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
16
16
|
Classifier: Natural Language :: English
|
|
17
17
|
Classifier: Operating System :: OS Independent
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.8
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
23
|
Classifier: Framework :: IPython
|
|
24
24
|
Classifier: Framework :: Jupyter
|
|
25
25
|
Classifier: Framework :: Matplotlib
|
|
26
|
-
Requires-Python: >=3.
|
|
26
|
+
Requires-Python: >=3.8
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
Requires-Dist: scipy>=1.9
|
|
30
|
+
Requires-Dist: numpy
|
|
31
|
+
Requires-Dist: matplotlib>=3.0.0
|
|
32
|
+
Requires-Dist: scikit-image>=0.19
|
|
33
|
+
Requires-Dist: pandas
|
|
34
|
+
Requires-Dist: peakutils
|
|
35
|
+
Requires-Dist: matplotlib_scalebar
|
|
36
|
+
Requires-Dist: networkx
|
|
37
|
+
Requires-Dist: numba
|
|
28
38
|
Provides-Extra: testing
|
|
39
|
+
Requires-Dist: pytest<8; extra == "testing"
|
|
40
|
+
Requires-Dist: coverage; extra == "testing"
|
|
41
|
+
Requires-Dist: pytest-cov; extra == "testing"
|
|
42
|
+
Requires-Dist: pytest_cases; extra == "testing"
|
|
29
43
|
Provides-Extra: docs
|
|
30
|
-
|
|
44
|
+
Requires-Dist: sphinx==5.0.2; extra == "docs"
|
|
45
|
+
Requires-Dist: sphinx_rtd_theme==0.5.0; extra == "docs"
|
|
46
|
+
Requires-Dist: sphinx_autodoc_typehints==1.11.1; extra == "docs"
|
|
47
|
+
Requires-Dist: nbsphinx==0.9.3; extra == "docs"
|
|
48
|
+
Requires-Dist: ipykernel; extra == "docs"
|
|
49
|
+
Requires-Dist: pandoc; extra == "docs"
|
|
50
|
+
Requires-Dist: ipympl; extra == "docs"
|
|
51
|
+
Dynamic: author
|
|
52
|
+
Dynamic: author-email
|
|
53
|
+
Dynamic: classifier
|
|
54
|
+
Dynamic: description
|
|
55
|
+
Dynamic: description-content-type
|
|
56
|
+
Dynamic: keywords
|
|
57
|
+
Dynamic: license
|
|
58
|
+
Dynamic: license-file
|
|
59
|
+
Dynamic: project-url
|
|
60
|
+
Dynamic: provides-extra
|
|
61
|
+
Dynamic: requires-dist
|
|
62
|
+
Dynamic: requires-python
|
|
63
|
+
Dynamic: summary
|
|
31
64
|
|
|
32
65
|

|
|
33
66
|
#### A python library for correlating EBSD and HRDIC data.
|
|
@@ -48,7 +81,7 @@ License-File: LICENSE
|
|
|
48
81
|
|
|
49
82
|
## How to install
|
|
50
83
|
- DefDAP can be installed from PyPI using the command `pip install defdap`
|
|
51
|
-
- If you use conda as your package manager (https://www.anaconda.com/), the prerequisite packages that are available from anaconda can be installed using the command `conda install scipy numpy matplotlib scikit-image pandas networkx
|
|
84
|
+
- If you use conda as your package manager (https://www.anaconda.com/), the prerequisite packages that are available from anaconda can be installed using the command `conda install scipy numpy matplotlib scikit-image pandas networkx` (Anaconda3-2020.02 has been tested)
|
|
52
85
|
- For more information, see the [documentation](https://defdap.readthedocs.io/en/latest/installation.html)
|
|
53
86
|
|
|
54
87
|
## How to use
|
|
@@ -74,8 +107,6 @@ The software uses the following open source packages:
|
|
|
74
107
|
- [pandas](http://pandas.pydata.org)
|
|
75
108
|
- [peakutils](https://peakutils.readthedocs.io/en/latest/)
|
|
76
109
|
- [matplotlib_scalebar](https://pypi.org/project/matplotlib-scalebar/)
|
|
77
|
-
- [IPython](https://ipython.org/)
|
|
78
|
-
- [jupyter](https://jupyter.org/)
|
|
79
110
|
|
|
80
111
|
## License
|
|
81
112
|
[Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
## How to install
|
|
19
19
|
- DefDAP can be installed from PyPI using the command `pip install defdap`
|
|
20
|
-
- If you use conda as your package manager (https://www.anaconda.com/), the prerequisite packages that are available from anaconda can be installed using the command `conda install scipy numpy matplotlib scikit-image pandas networkx
|
|
20
|
+
- If you use conda as your package manager (https://www.anaconda.com/), the prerequisite packages that are available from anaconda can be installed using the command `conda install scipy numpy matplotlib scikit-image pandas networkx` (Anaconda3-2020.02 has been tested)
|
|
21
21
|
- For more information, see the [documentation](https://defdap.readthedocs.io/en/latest/installation.html)
|
|
22
22
|
|
|
23
23
|
## How to use
|
|
@@ -43,8 +43,6 @@ The software uses the following open source packages:
|
|
|
43
43
|
- [pandas](http://pandas.pydata.org)
|
|
44
44
|
- [peakutils](https://peakutils.readthedocs.io/en/latest/)
|
|
45
45
|
- [matplotlib_scalebar](https://pypi.org/project/matplotlib-scalebar/)
|
|
46
|
-
- [IPython](https://ipython.org/)
|
|
47
|
-
- [jupyter](https://jupyter.org/)
|
|
48
46
|
|
|
49
47
|
## License
|
|
50
48
|
[Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from defdap.experiment import Experiment
|
|
2
|
+
|
|
1
3
|
defaults = {
|
|
2
4
|
# Convention to use when attaching an orthonormal frame to a crystal
|
|
3
5
|
# structure. 'hkl' or 'tsl'
|
|
@@ -14,6 +16,10 @@ defaults = {
|
|
|
14
16
|
'slip_system_file': {
|
|
15
17
|
'FCC': 'cubic_fcc',
|
|
16
18
|
'BCC': 'cubic_bcc',
|
|
17
|
-
'HCP': '
|
|
19
|
+
'HCP': 'hexagonal_withca',
|
|
18
20
|
},
|
|
21
|
+
# up or down
|
|
22
|
+
'ipf_triangle_convention': 'up'
|
|
19
23
|
}
|
|
24
|
+
|
|
25
|
+
anonymous_experiment = Experiment()
|