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

Modify detsim to read nexus files with int instead of strings #870

Merged
merged 9 commits into from
May 13, 2024

Conversation

paolafer
Copy link
Collaborator

@paolafer paolafer commented Apr 24, 2024

This PR modifies a few functions all over the code, to deal with nexus files with int instead of string in some columns of their dataframes.
The main modification is in the detsim city, in the selection of hits in active or buffer, but a few other functions needed to be updated, too.
A test has been added to prove that the code works.

Closes #869.

invisible_cities/cities/components.py Outdated Show resolved Hide resolved
invisible_cities/cities/detsim.py Outdated Show resolved Hide resolved
invisible_cities/io/mcinfo_io.py Outdated Show resolved Hide resolved
invisible_cities/cities/detsim_test.py Outdated Show resolved Hide resolved
invisible_cities/cities/detsim_test.py Outdated Show resolved Hide resolved
invisible_cities/cities/components.py Outdated Show resolved Hide resolved
invisible_cities/cities/components.py Outdated Show resolved Hide resolved
invisible_cities/cities/components.py Outdated Show resolved Hide resolved
@paolafer paolafer force-pushed the update-for-non-strings branch 3 times, most recently from 094dd4a to 4aa9f55 Compare May 3, 2024 08:28
Copy link
Collaborator

@gonzaponte gonzaponte left a comment

Choose a reason for hiding this comment

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

A necessary update to deal with the change in the file structure produced upstream. Good job!

@carhc carhc merged commit 47503ba into next-exp:master May 13, 2024
1 check passed
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 this pull request may close these issues.

Modify detsim to deal with string-free nexus files
3 participants