Irf maker and cut optimiser #2473
Quality Gate success
Analysis Details
9 Issues
Coverage and Duplications
Project ID: cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs
Annotations
Check notice on line 173 in src/ctapipe/tools/tests/test_compute_irf.py
ctao-dpps-sonarqube / ctapipe Sonarqube Results
src/ctapipe/tools/tests/test_compute_irf.py#L173
Complete the task associated to this "TODO" comment.
Check failure on line 49 in src/ctapipe/tools/tests/test_compute_irf.py
ctao-dpps-sonarqube / ctapipe Sonarqube Results
src/ctapipe/tools/tests/test_compute_irf.py#L49
Define a constant instead of duplicating this literal "irf.fits.gz" 5 times.
Check failure on line 50 in src/ctapipe/tools/tests/test_compute_irf.py
ctao-dpps-sonarqube / ctapipe Sonarqube Results
src/ctapipe/tools/tests/test_compute_irf.py#L50
Define a constant instead of duplicating this literal "benchmarks.fits.gz" 5 times.
Check failure on line 24 in src/ctapipe/tools/tests/test_optimize_event_selection.py
ctao-dpps-sonarqube / ctapipe Sonarqube Results
src/ctapipe/tools/tests/test_optimize_event_selection.py#L24
Define a constant instead of duplicating this literal "cuts.fits" 3 times.
Check failure on line 456 in src/ctapipe/tools/compute_irf.py
ctao-dpps-sonarqube / ctapipe Sonarqube Results
src/ctapipe/tools/compute_irf.py#L456
Refactor this function to reduce its Cognitive Complexity from 37 to the 15 allowed.
Check notice on line 402 in src/ctapipe/tools/compute_irf.py
ctao-dpps-sonarqube / ctapipe Sonarqube Results
src/ctapipe/tools/compute_irf.py#L402
Complete the task associated to this "TODO" comment.
Check warning on line 85 in src/ctapipe/irf/tests/test_optimize.py
ctao-dpps-sonarqube / ctapipe Sonarqube Results
src/ctapipe/irf/tests/test_optimize.py#L85
Rename this parameter "Optimizer" to match the regular expression ^[_a-z][a-z0-9_]*$.
Check failure on line 162 in docs/conf.py
ctao-dpps-sonarqube / ctapipe Sonarqube Results
docs/conf.py#L162
Define a constant instead of duplicating this literal "py:meth" 3 times.
Check failure on line 154 in docs/conf.py
ctao-dpps-sonarqube / ctapipe Sonarqube Results
docs/conf.py#L154
Define a constant instead of duplicating this literal "py:obj" 9 times.