-
Notifications
You must be signed in to change notification settings - Fork 206
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
added support for DPC #2567
added support for DPC #2567
Conversation
Codecov Report
@@ Coverage Diff @@
## RELEASE_next_patch #2567 +/- ##
======================================================
- Coverage 75.98% 75.98% -0.01%
======================================================
Files 202 202
Lines 29600 29608 +8
Branches 6451 6453 +2
======================================================
+ Hits 22493 22499 +6
- Misses 5309 5310 +1
- Partials 1798 1799 +1
Continue to review full report at Codecov.
|
You're being very efficient :D I don't need it for now, but could you check if EDS datasets that also collect DPC can be read as well? |
I don't have such a dataset to try, but I would expect that it should also work. The DPC signals are all just stored as images in the |
@din14970, they should be some metadata to parse when loading this type of data? This would be good to update the title to something more useful than DF4? @thomasaarholt, as mentioned by @din14970, reading these image is independent of reading the EDS stream. Is there anything in particular you have in mind? |
If they're independent, then all is well - that was my only concern. |
@ericpre yes this is a big problem, because unfortunately all DPC related signals come from the detector that Velox identifies as DF4 (at least on our microscope) so they all get the same title in hyperspy. In the metadata that accompanies the dataset I could not find anything that provides more context to the dataset. Instead, one can parse the info in I think the |
@ericpre The titles for DPC signals should now be fixed, it works at least on all the datasets I have. I added a minimal test emd file and a test which should cover most of the |
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 have left a few comments. I have tried with the "17_ 20191205 1.3 Mx Imaging Ceta 1347.emd" file, you shared in #2483 and I get a "Unrecognized_image_signal"
title. I don't know what is this dataset supposed to be (it seems to the same as the one in the same file?)
Other than that, this looks good to me.
@ericpre added some more conditions in the I still have to find the best way to remove the initial emd file from the history, unfortunately I added it in the same commit as the first commit in this PR. |
46b6ff5
to
20d3fef
Compare
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.
Great, thanks. Looks good to me!
note to self: add binary files as separate commits. This was quite the hassle. |
Description of the change
Progress of the PR