Implement non-linear scaling for NDVI hybrid green correction #2554
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
succeeded
Sep 18, 2023 in 30s
CodeScene PR Check
✅ Quality Gates: OK
- Declining Code Health: 1 findings(s) 🚩
- Improving Code Health: 0 findings(s) ✅
- Affected Hotspots: 0 files(s) 🔥
Recommended Review Level: Lightweight sanity check
View detailed results in CodeScene
Details
🚩 Negative Code Health Impact (highest to lowest):
- Code Duplication test_spectral.py
Annotations
Check notice on line 157 in satpy/composites/spectral.py
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
ℹ Getting worse: Excess Number of Function Arguments
NDVIHybridGreen.__init__ increases from 5 to 6 arguments, threshold = 4. This function has too many arguments, indicating a lack of encapsulation. Avoid adding more arguments.
Check warning on line 78 in satpy/tests/compositor_tests/test_spectral.py
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Code Duplication
The module contains 3 functions with similar structure: TestSpectralComposites.test_green_corrector,TestSpectralComposites.test_hybrid_green,TestSpectralComposites.test_spectral_blender. Avoid duplicated, aka copy-pasted, code inside the module. More duplication lowers the code health.
Loading