-
Notifications
You must be signed in to change notification settings - Fork 13
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
geant4 : Transfer of material properties does not appear to work. #127
base: main
Are you sure you want to change the base?
geant4 : Transfer of material properties does not appear to work. #127
Conversation
040e927
to
0cc79fa
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #127 +/- ##
==========================================
- Coverage 74.12% 74.12% -0.01%
==========================================
Files 157 157
Lines 22735 22736 +1
==========================================
Hits 16853 16853
- Misses 5882 5883 +1 ☔ View full report in Codecov by Sentry. |
So a similar line of code is on line 170 just above. If the one you propose should be changed, then so should this... |
More generally, we have two functions "transferDefine" and "transferDefines". We've written that the second should do it recursively. So the second works on Defines.VectorBase, Defines.ScalarBase and Defines.Matrix. Looking through Therefore, I would say that what should actually happen is not this change but we add something to "transferDefines" that handles the Conceptually, "transferDefines" should handle any define type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments.
As suspected I didn't really understand the subtle aspects of this. The problem I encountered was with the transfer of optical properties, not Auxiliary. This PR fixed that problem, but likely not to be correct. I'll make an issue showing the problem and maybe you can implement the general fix. Let's leave this PR open for reference. |
267fea7
to
b4111e7
Compare
f639065
to
7dcd054
Compare
7d6221e
to
df7e82d
Compare
7f3b918
to
1336a70
Compare
1336a70
to
63c9898
Compare
7529e10
to
238b6f7
Compare
9af078e
to
578c764
Compare
…ck fix, but might not be general
578c764
to
735a8ee
Compare
Transfer of material properties does not appear to work. Quick fix, but might not be general