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

Initial implementation of EUMETSAT IASI-NG reader #2879

Open
wants to merge 46 commits into
base: main
Choose a base branch
from

Added a few additional unit tests for coverage.

c1303f3
Select commit
Loading
Failed to load commit list.
Open

Initial implementation of EUMETSAT IASI-NG reader #2879

Added a few additional unit tests for coverage.
c1303f3
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) succeeded Oct 4, 2024 in 35s

CodeScene PR Check

Code Health Quality Gates: OK

Code Health of new files: 9.49

  • Declining Code Health: 2 findings(s) 🚩

View detailed results in CodeScene

Details

🚩 Declining Code Health (highest to lowest):

  • Code Duplication test_iasi_ng_l2_nc.py
  • Complex Method iasi_ng_l2_nc.py: IASINGL2NCFileHandler.register_available_datasets

Annotations

Check warning on line 476 in satpy/tests/reader_tests/test_iasi_ng_l2_nc.py

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

❌ New issue: Code Duplication

The module contains 5 functions with similar structure: TestIASINGL2NCReader.test_ignore_pattern_variable,TestIASINGL2NCReader.test_ignore_scalar_variable,TestIASINGL2NCReader.test_process_variable,TestIASINGL2NCReader.test_register_available_datasets and 1 more functions. Avoid duplicated, aka copy-pasted, code inside the module. More duplication lowers the code health.

Check warning on line 229 in satpy/readers/iasi_ng_l2_nc.py

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

❌ New issue: Complex Method

IASINGL2NCFileHandler.register_available_datasets has a cyclomatic complexity of 9, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.