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

Patch concat hits #411

Merged
merged 5 commits into from Mar 29, 2021
Merged

Conversation

WenzDaniel
Copy link
Collaborator

@WenzDaniel WenzDaniel commented Mar 21, 2021

What is the problem / what does the code in this PR do
Fixes two bugs which can cause a division by zero bug in hitlet_properties.

Added and refactored hitlet tests. I was not able to find a suitable test for the yield offset bug any suggestions are welcome.

Comment on lines +256 to +261
# Step 3.: Add np.nan in data but outside of length:
for h in hitlets:
if h['length'] < len(h['data']):
h['data'][-1] = np.nan
# It is enough to test this for a single hitlet:
break
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This test catches the highest_density_region bug

@WenzDaniel
Copy link
Collaborator Author

We are doing to many tests :D The Travis error The requested URL returned error: 429 is due to too many URL requests in a short time. That is why travis was not able to git clone strax,

@WenzDaniel WenzDaniel marked this pull request as ready for review March 29, 2021 08:32
Copy link
Member

@JoranAngevaare JoranAngevaare left a comment

Choose a reason for hiding this comment

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

Thanks Daniel

@WenzDaniel WenzDaniel merged commit c0f128c into AxFoundation:master Mar 29, 2021
@WenzDaniel WenzDaniel deleted the patch_concat_hits branch March 30, 2021 12:38
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.

None yet

2 participants