legend-exp / legend-pygeom-hpges

Germanium detector geometries for radiation transport simulations
https://legend-pygeom-hpges.readthedocs.io
GNU General Public License v3.0
0 stars 4 forks source link

Adding make_hpge.py and handling some exceptions #7

Closed nikolay327 closed 1 year ago

nikolay327 commented 1 year ago

Adding functionality for HPGe detector construction directly from the metadata. Exeptions handled:

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 97.29% and project coverage change: +3.36 :tada:

Comparison is base (97a8938) 68.55% compared to head (6ba2fb9) 71.92%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7 +/- ## ========================================== + Coverage 68.55% 71.92% +3.36% ========================================== Files 9 10 +1 Lines 229 260 +31 ========================================== + Hits 157 187 +30 - Misses 72 73 +1 ``` | [Impacted Files](https://app.codecov.io/gh/legend-exp/legend-pygeom-hpges/pull/7?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=legend-exp) | Coverage Δ | | |---|---|---| | [src/legendhpges/make\_hpge.py](https://app.codecov.io/gh/legend-exp/legend-pygeom-hpges/pull/7?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=legend-exp#diff-c3JjL2xlZ2VuZGhwZ2VzL21ha2VfaHBnZS5weQ==) | `96.15% <96.15%> (ø)` | | | [src/legendhpges/\_\_init\_\_.py](https://app.codecov.io/gh/legend-exp/legend-pygeom-hpges/pull/7?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=legend-exp#diff-c3JjL2xlZ2VuZGhwZ2VzL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [src/legendhpges/base.py](https://app.codecov.io/gh/legend-exp/legend-pygeom-hpges/pull/7?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=legend-exp#diff-c3JjL2xlZ2VuZGhwZ2VzL2Jhc2UucHk=) | `65.21% <100.00%> (+0.77%)` | :arrow_up: | | [src/legendhpges/materials.py](https://app.codecov.io/gh/legend-exp/legend-pygeom-hpges/pull/7?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=legend-exp#diff-c3JjL2xlZ2VuZGhwZ2VzL21hdGVyaWFscy5weQ==) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.