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

Fix reading of longitudinal blocks, fixes #24 #25

Merged
merged 2 commits into from
Mar 10, 2023
Merged

Fix reading of longitudinal blocks, fixes #24 #25

merged 2 commits into from
Mar 10, 2023

Conversation

maxnoe
Copy link
Member

@maxnoe maxnoe commented Mar 9, 2023

fixes #24

This bug got introduced in #23, missing the itemsize=None meant that we immediately read the full block, not just the header information resulting in empty longitudinal profile in the event.

@maxnoe maxnoe requested a review from HealthyPear March 9, 2023 16:48
@codecov
Copy link

codecov bot commented Mar 9, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change

Comparison is base (029bcb6) 95.98% compared to head (2127d55) 95.99%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #25   +/-   ##
=======================================
  Coverage   95.98%   95.99%           
=======================================
  Files          20       20           
  Lines         473      474    +1     
=======================================
+ Hits          454      455    +1     
  Misses         19       19           
Impacted Files Coverage Δ
corsikaio/subblocks/longitudinal.py 100.00% <100.00%> (ø)
tests/test_file.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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@HealthyPear HealthyPear left a comment

Choose a reason for hiding this comment

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

Whoops, my bad sorry! 😭

@maxnoe maxnoe merged commit d921446 into main Mar 10, 2023
@maxnoe maxnoe deleted the fix_longi branch March 10, 2023 17:06
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.

Unable to read longitudinal profiles with 0.3.0
2 participants