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

pycorsikaio to astropy Qtable #28

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

HealthyPear
Copy link
Member

@HealthyPear HealthyPear commented Mar 27, 2023

This is the first proposal to add a new reader based on astropy.

The main features are the same as in #14, but with units from #23.

At the time I didn't test it with the latest release of pycorsikaio, so there are some limitations that should probably be addressed:

Generally, I think the quality of the code could be improved a lot since I never showed it before.

Also, the reader can read data blocks in a modular way, but will always try to join the tables. When I was developing the same reader for the XCDF data format I noticed that some showers produced so many events (in the detector) that the table joining was failing due to memory limitations. In that reader, I also added a get_tables() method to return all tables separately without joining (like shower_events, water_hits, photoelectrons = hawcsim_reader.get_tables()) - perhaps it can be useful also here.

Closes #14

@codecov
Copy link

codecov bot commented Mar 27, 2023

Codecov Report

Patch coverage: 52.09% and project coverage change: -15.70 ⚠️

Comparison is base (2127d55) 95.99% compared to head (c2fcc83) 80.29%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main      #28       +/-   ##
===========================================
- Coverage   95.99%   80.29%   -15.70%     
===========================================
  Files          20       22        +2     
  Lines         474      736      +262     
===========================================
+ Hits          455      591      +136     
- Misses         19      145      +126     
Impacted Files Coverage Δ
corsikaio/reader.py 37.93% <37.93%> (ø)
corsikaio/io.py 94.44% <100.00%> (ø)
tests/test_reader.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pycorsikaio to astropy Qtable
1 participant