pycroscopy / pyTEMlib

TEM data quantification library through a model-based approach
https://pycroscopy.github.io/pyTEMlib/
MIT License
16 stars 9 forks source link

center_diffractogram function #162

Closed ahoust17 closed 7 months ago

ahoust17 commented 8 months ago

Robust function which uses Ostu's thresholding method, edge finding, and mean-square error fitting of the edge to center the diffractogram.

codecov-commenter commented 8 months ago

Codecov Report

Attention: Patch coverage is 10.20408% with 44 lines in your changes are missing coverage. Please review.

Project coverage is 25.33%. Comparing base (3400d60) to head (a8479cf).

Files Patch % Lines
pyTEMlib/image_tools.py 10.20% 44 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #162 +/- ## ========================================== - Coverage 25.40% 25.33% -0.08% ========================================== Files 40 40 Lines 9620 9663 +43 ========================================== + Hits 2444 2448 +4 - Misses 7176 7215 +39 ``` | [Flag](https://app.codecov.io/gh/pycroscopy/pyTEMlib/pull/162/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pycroscopy) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/pycroscopy/pyTEMlib/pull/162/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pycroscopy) | `25.33% <10.20%> (-0.08%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pycroscopy#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.