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

Load SUMO coordinate from GEANT4 CSV files #92

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Conversation

jl-wynen
Copy link
Member

Based on an implementation by @celinedurniak, see also #83.

@jl-wynen jl-wynen changed the base branch from main to update-dependencies September 18, 2024 10:10
@jl-wynen jl-wynen changed the title Load SUMO coordiante from GEANT4 CSV files Load SUMO coordinate from GEANT4 CSV files Sep 18, 2024
@jl-wynen jl-wynen force-pushed the geant4-load-sumos branch 2 times, most recently from 8ce50f6 to 81e3b3f Compare September 18, 2024 11:12
Base automatically changed from update-dependencies to main September 19, 2024 06:54
@YooSunYoung YooSunYoung self-assigned this Sep 19, 2024
@@ -90,10 +91,14 @@ def group(key: str, da: sc.DataArray) -> sc.DataArray:
if key in ["high_resolution", "sans"]:
# Only the HR and SANS detectors have sectors.
res = da.group("sector", *elements)
elif key in ["endcap_backward", "endcap_forward"]:
# Other banks only have a single SUMO.
res = da.group("sumo", *elements)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if other banks only have a single SUMO, we can still group them by SUMO, no...?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can. But that would be the use? This extra dimension would get in the way of plotting and would always have to be sliced out.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I wasn't sure how many times we have to filter the endcap for this reason.
If it's not in many places, I think not-grouping is fine.

@jl-wynen jl-wynen merged commit c4ee9b4 into main Sep 19, 2024
4 checks passed
@jl-wynen jl-wynen deleted the geant4-load-sumos branch September 19, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants