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

propagate registry object to material creation #46

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

ManuelHu
Copy link
Collaborator

@ManuelHu ManuelHu commented Oct 24, 2024

This prevented pyg4ometry from (in-)correctly validating material name duplicates. Also fix the duplicates, so that pyg4ometry can read back generated GDML files.

also see g4edge/pyg4ometry#195 for background

important note: while pyg4ometry could not read the generated files, Geant4 alsways could without problems. So this bug did never impact actual simulation runs, only people trying to read data from the GDML file.

Copy link

codecov bot commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 79.56%. Comparing base (a7c9b2c) to head (7000cfc).
Report is 25 commits behind head on main.

Files with missing lines Patch % Lines
src/legendhpges/base.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #46      +/-   ##
==========================================
- Coverage   79.74%   79.56%   -0.19%     
==========================================
  Files          14       14              
  Lines         548      548              
==========================================
- Hits          437      436       -1     
- Misses        111      112       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ManuelHu ManuelHu merged commit 3c91f9d into legend-exp:main Oct 25, 2024
15 checks passed
@ManuelHu ManuelHu deleted the fix-registry branch October 25, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant