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

Increase test coverage #513

Open
alexander-held opened this issue Aug 25, 2022 · 0 comments
Open

Increase test coverage #513

alexander-held opened this issue Aug 25, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@alexander-held
Copy link
Collaborator

The current test coverage is 23%, as evaluated via pytest-cov running Coverage.py. While coverage by itself does not necessarily mean much, it would be useful to try and extend this.

Module statements missing excluded branches partial coverage
madminer/__init__.py 10 0 0 0 0 100%
madminer/analysis/__init__.py 1 0 0 0 0 100%
madminer/analysis/dataanalyzer.py 386 280 0 228 21 23%
madminer/core/__init__.py 1 0 0 0 0 100%
madminer/core/madminer.py 288 189 0 127 9 29%
madminer/delphes/__init__.py 1 0 0 0 0 100%
madminer/delphes/delphes_reader.py 255 223 0 116 0 9%
madminer/fisherinformation/__init__.py 3 0 0 0 0 100%
madminer/fisherinformation/geometry.py 124 104 0 50 0 13%
madminer/fisherinformation/information.py 451 338 0 250 13
madminer/fisherinformation/manipulate.py 38 24 0 18 1 27%
madminer/lhe/__init__.py 1 0 0 0 0 100%
madminer/lhe/lhe_reader.py 208 138 0 84 3 26%
madminer/likelihood/__init__.py 3 0 0 0 0 100%
madminer/likelihood/base.py 62 41 0 14 0 30%
madminer/likelihood/histo.py 191 168 0 117 0 8%
madminer/likelihood/manipulate.py 118 109 0 76 0 5%
madminer/likelihood/neural.py 72 60 0 38 0 13%
madminer/limits/__init__.py 1 0 0 0 0 100%
madminer/limits/asymptotic_limits.py 382 343 0 167 0 7%
madminer/ml/__init__.py 7 0 0 0 0 100%
madminer/ml/base.py 181 105 0 54 9 40%
madminer/ml/double_parameterized_ratio.py 182 158 0 70 0 10%
madminer/ml/ensemble.py 256 229 0 126 0 8%
madminer/ml/likelihood.py 185 159 0 74 0 11%
madminer/ml/lookup.py 28 20 0 12 0 20%
madminer/ml/morphing_aware.py 47 30 0 12 0 36%
madminer/ml/parameterized_ratio.py 185 63 0 70 20 60%
madminer/ml/score.py 178 153 0 64 0 11%
madminer/models/__init__.py 11 0 0 0 0 100%
madminer/models/benchmarks.py 33 11 0 8 0 63%
madminer/models/parameters.py 24 2 0 6 0 93%
madminer/models/readers.py 31 5 0 14 1 78%
madminer/models/systematics.py 37 13 0 18 0 55%
madminer/plotting/__init__.py 5 0 0 0 0 100%
madminer/plotting/distributions.py 245 235 0 166 0 2%
madminer/plotting/fisherinformation.py 205 197 0 126 0 2%
madminer/plotting/limits.py 66 60 0 40 0 6%
madminer/plotting/morphing.py 98 89 0 16 0 8%
madminer/plotting/uncertainties.py 194 185 0 54 0 4%
madminer/sampling/__init__.py 3 0 0 0 0 100%
madminer/sampling/combine.py 68 54 0 38 0 13%
madminer/sampling/parameters.py 17 7 0 2 0 53%
madminer/sampling/sampleaugmenter.py 588 552 0 300 0 4%
madminer/utils/__init__.py 0 0 0 0 0 100%
madminer/utils/histo.py 92 79 0 36 0 12%
madminer/utils/interfaces/__init__.py 0 0 0 0 0 100%
madminer/utils/interfaces/delphes.py 38 33 0 20 0 9%
madminer/utils/interfaces/delphes_root.py 341 316 0 136 0 5%
madminer/utils/interfaces/hdf5.py 411 74 0 219 25 80%
madminer/utils/interfaces/hepmc.py 32 27 0 17 0 10%
madminer/utils/interfaces/lhe.py 582 545 0 306 0 5%
madminer/utils/interfaces/mg.py 160 148 0 84 0 5%
madminer/utils/interfaces/mg_cards.py 160 147 0 78 0 5%
madminer/utils/ml/__init__.py 0 0 0 0 0 100%
madminer/utils/ml/eval.py 126 92 0 80 8 23%
madminer/utils/ml/losses.py 36 5 0 0 0 86%
madminer/utils/ml/models/__init__.py 0 0 0 0 0 100%
madminer/utils/ml/models/base.py 47 26 0 8 0 45%
madminer/utils/ml/models/batch_norm.py 42 30 0 8 0 28%
madminer/utils/ml/models/made.py 140 119 0 28 0 15%
madminer/utils/ml/models/made_mog.py 95 79 0 16 0 16%
madminer/utils/ml/models/maf.py 136 118 0 72 0 11%
madminer/utils/ml/models/maf_mog.py 81 68 0 36 0 13%
madminer/utils/ml/models/masks.py 64 54 0 20 0 12%
madminer/utils/ml/models/ratio.py 201 147 0 92 5 27%
madminer/utils/ml/models/score.py 39 29 0 18 0 21%
madminer/utils/ml/trainer.py 450 142 0 144 23 66%
madminer/utils/ml/utils.py 151 72 0 86 9 46%
madminer/utils/morphing.py 271 73 0 141 30 71%
madminer/utils/particle.py 87 70 0 14 0 25%
madminer/utils/various.py 160 84 0 72 10 41%
Total 9412 6921 0 4286 187 23%
@alexander-held alexander-held added the enhancement New feature or request label Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant