-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: Implement surface lookup from source link #576
feat: Implement surface lookup from source link #576
Conversation
f981d0b
to
e21c1ec
Compare
196b9ab
to
9bff1e6
Compare
eefb871
to
94ce91a
Compare
Most of the changes in the detector are from reordering the methods, so that it becomes clear which ones are up for removal |
8a79017
to
2b915c8
Compare
2e89e27
to
6a96e9c
Compare
80aeb02
to
8559685
Compare
I need this PR for the grid builder, so that I can use the index offsets in the volume descriptors to switch between global and local indices in the grids |
8559685
to
198fd32
Compare
With some help from @beomki-yeo , I also hot-fixed another division by zero and added some asserts |
… can be extended later on without breaking anything. The surface lookup is renamed to just surfaces again. It also strips the source link from the surface descriptor, which will now not be carried around throughout all of the navigation and grid. The source link is still available via the surface lookup. In order to make easier lookups for the source links, the portal, sensisitve and passive index ranges are added back to the volume descriptor, which also allows to get access to the surface range of a volume via the detector_volume class. Wherever I could find it, I already refactored the surface access through the volume accordingly.
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.
Looks good to me
This abstracts the surface lookup from the detector class, so that it can be extended later on without breaking anything. The surface lookup is renamed to just surfaces again. It also strips the source link from the surface descriptor, which will now not be carried around throughout all of the navigation and grid. The source link is still available via the surface lookup.
In order to make easier lookups for the source links, the portal, sensisitve and passive index ranges are added back to the volume descriptor, which also allows to get access to the surface range of a volume via the
detector_volume
class. Wherever I could find it, I already refactored the surface access through the volume accordingly.