-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow reading of EDAX TSL .ang files with ten columns #416
Conversation
The two failing tests on Windows Py 3.9/10 are fixed on
I think this fix should be included in a potential patch release. |
"fit", | ||
], | ||
"tsl": { | ||
0: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe changing unknown1
to sem is the correct way to read TSL files. example below:
0: [
"euler1",
"euler2",
"euler3",
"x",
"y",
"iq", # Image quality from Hough transform
"ci", # Confidence index
"phase_id",
"sem",
"fit", # Pattern fit
"unknown1",
"unknown2",
"unknown3",
"unknown4",
],
1: [
"euler1",
"euler2",
"euler3",
"x",
"y",
"iq",
"ci",
"phase_id",
"sem",
"fit",
],
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, thanks! I've renamed it to "detector_signal", as I find this more descriptive.
Signed-off-by: Håkon Wiik Ånes <[email protected]>
Signed-off-by: Håkon Wiik Ånes <[email protected]>
Signed-off-by: Håkon Wiik Ånes <[email protected]>
Signed-off-by: Håkon Wiik Ånes <[email protected]>
Signed-off-by: Håkon Wiik Ånes <[email protected]>
Signed-off-by: Håkon Wiik Ånes <[email protected]>
Signed-off-by: Håkon Wiik Ånes <[email protected]>
Signed-off-by: Håkon Wiik Ånes <[email protected]>
Signed-off-by: Håkon Wiik Ånes <[email protected]>
The failing tests are I can reproduce these errors locally after updating to Matplotlib 3.6.3. When running the code in the tests outside of tests, I get the expected number of collections, though. So I do not know what causes the extra collections when running with pytest. The errors happen when running on both one or more cores (via pytest-xdist). I think easing the test criteria is the way to go. Will try to find a fix for this in this PR. |
Signed-off-by: Håkon Wiik Ånes <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, glad the workflows have got an update as well :)
Thank you, @pc494! |
Description of the change
EDAX TSL .ang files with ten data columns should be read correctly with this patch.
Fixes #413, where it was identified that two openly available .ang files, shown in #411 (comment), were read incorrectly. With this patch, there is a correct correspondence between phase ID and phase list, and the scan unit is "um". Big thanks to @argerlt who pointed me to these datasets.
I've made another small change to IO scan units. Previously, ASTAR/orix/unknown .ang files returned maps with "nm" as scan unit. Now, all but ASTAR .ang files return maps with "um" as scan unit. As far as I know there is no scan unit information .ang files. Hence, we have to guess, and I think the new guess is better.
I'd like to release this as part of a 0.10.3 patch soon (see #415).
Progress of the PR
Minimal example of the bug fix or new feature
Previously
Now
For reviewers
__init__.py
.section in
CHANGELOG.rst
.__credits__
inorix/__init__.py
and in.zenodo.json
.