Skip to content
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

Correct Unexpected floats when reading LI L2 LFL #2998

Merged
merged 9 commits into from
Mar 21, 2025

Conversation

ClementLaplace
Copy link
Contributor

Makes sure that the method apply_fill_value is not applied when _FillaValue is not into the attributes. It is fixing the bug mentioned there #2854 .

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.12%. Comparing base (17cf0ce) to head (f29d190).
Report is 116 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2998      +/-   ##
==========================================
- Coverage   96.14%   96.12%   -0.03%     
==========================================
  Files         383      383              
  Lines       55785    55691      -94     
==========================================
- Hits        53636    53534     -102     
- Misses       2149     2157       +8     
Flag Coverage Δ
behaviourtests 3.88% <0.00%> (+<0.01%) ⬆️
unittests 96.22% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coveralls
Copy link

coveralls commented Nov 22, 2024

Pull Request Test Coverage Report for Build 12991062112

Details

  • 22 of 22 (100.0%) changed or added relevant lines in 4 files are covered.
  • 3 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.005%) to 96.217%

Files with Coverage Reduction New Missed Lines %
satpy/tests/reader_tests/_li_test_utils.py 1 98.55%
satpy/readers/li_base_nc.py 1 99.62%
satpy/tests/reader_tests/test_li_l2_nc.py 1 99.53%
Totals Coverage Status
Change from base Build 12905542942: -0.005%
Covered Lines: 53761
Relevant Lines: 55875

💛 - Coveralls

Copy link
Member

@ameraner ameraner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the investigations! I left some comments in the code.

I am also wondering if we still also need the fix for the float64 upcasting when multiplying with the scale_factor, as discussed in the issue...

…tests to check the dtype improve the mock datas
Copy link
Member

@ameraner ameraner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix and the extra more comprehensive tests! Just two things inline.

Copy link
Member

@ameraner ameraner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@ameraner ameraner added enhancement code enhancements, features, improvements component:readers bug labels Dec 5, 2024
Copy link
Member

@pnuu pnuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion inline.

Maybe we should start splitting the long test helpers to smaller chunks at some point?

I also restarted the one windows CI run.

@ClementLaplace ClementLaplace requested a review from pnuu January 27, 2025 16:56
Copy link
Member

@pnuu pnuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the numerous formatting suggestions, looks good to me.

@ClementLaplace ClementLaplace requested a review from pnuu February 21, 2025 17:01
Copy link
Member

@pnuu pnuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for this!

Could you update the description so that it describes the changes? In addition to the currently mentioned float32, there are also plenty of small unrelated changes in the tests and test utilis.

@ClementLaplace
Copy link
Contributor Author

i

LGTM, thanks for this!

Could you update the description so that it describes the changes? In addition to the currently mentioned float32, there are also plenty of small unrelated changes in the tests and test utilis.

@pnuu Thanks for your feedback, the unrelated changes is done because at some point the CI/CD pipeline was not working anymore (see this commit) hence I have merged the main branch to the fix_li_lfl_float branch (see this commit), it has enable the pipeline to work again.

@mraspaud mraspaud merged commit 923a824 into pytroll:main Mar 21, 2025
14 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component:readers enhancement code enhancements, features, improvements
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Unexpected floats when reading LI L2 LFL data
5 participants