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

bug in flattened detector ID calculation #54

Closed
gschramm opened this issue Nov 4, 2024 · 0 comments · Fixed by #56
Closed

bug in flattened detector ID calculation #54

gschramm opened this issue Nov 4, 2024 · 0 comments · Fixed by #56
Assignees

Comments

@gschramm
Copy link
Collaborator

gschramm commented Nov 4, 2024

The calculation of the flattened detector ID in the python generator example is wrong:

rep_volume.ids.append(rep0 + N0 * (rep1 + N1 * rep2))

Should read:

rep_volume.ids.append(rep2 + N2 * (rep1 + N1 * rep0))

since rep2 is increasing the fastest.

@KrisThielemans KrisThielemans self-assigned this Nov 4, 2024
KrisThielemans added a commit to KrisThielemans/PRDdefinition that referenced this issue Nov 4, 2024
KrisThielemans added a commit that referenced this issue Nov 7, 2024
* fix module_id order

Fixes #54

* fix conversion from detector_id to mod/el

follow agreed order

fixes #55

* simplify id generation
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 a pull request may close this issue.

2 participants