-
Notifications
You must be signed in to change notification settings - Fork 9
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
fluka : lattice, merge, reflections and tests #83
fluka : lattice, merge, reflections and tests #83
Conversation
stewartboogert
commented
Aug 8, 2023
•
edited
edited
- reflection fixes in g4 to FLUKA conversion
- all FLUKA code to include tests of writing
- VTK visualisation bug fix ( M S R -> M R S) so should be S (reflection), R (rotation) and upstream transform M
- start merging FLUKA registries
- fix writing of transformations (RecursiveTransform, Transform etc.)
- File comparison tests for all FLUKA output
8a0c2f5
to
733c091
Compare
Codecov Report
@@ Coverage Diff @@
## main #83 +/- ##
==========================================
- Coverage 73.79% 70.78% -3.02%
==========================================
Files 137 138 +1
Lines 20483 21530 +1047
==========================================
+ Hits 15115 15239 +124
- Misses 5368 6291 +923
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
1174ca5
to
a014209
Compare
Generally all good. I think though that creating a duplicate file (the bake one) for the conversion will have a bad outcome... Just now the two huge files are nearly identical, but only because one or two shapes are implement. How about there's a function for each shape, then we make this a derived class and override only those bits. We have to have different behaviour if we bake in the transforms or not, therefore overriding a function would seem the way. Or, could each fluka solid take the same input and the transform (when it's baked, the transform is set to None) and the solid constructor has a flag to bake in the transform? As soon as we apply a fix for the conversion it will have to be done in two places just now. |
- rename material recursives - loop over different dictionaries - update test
- Bake transforms to bodies - Update conversion tests - New tests for improper rotatiosn (reflection and rotation) - Compare fluka output files to reference files
…ch stops the test runner
a014209
to
752ce06
Compare
Completely agree. This PR was.supposed to be about lattice and other fluka functionality and turned into tests and some proof of principle ideas of how to fix the fluka conversion with reflections. So I have written up the change required in #92. I propose we merge this as it is blocking #91 and then fix the two code path problem later. Is this ok @lnevay |