Skip to content

Patch smoothing utility to handle short signals (for backfill) #437

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

Merged
merged 2 commits into from
Nov 10, 2020

Conversation

dshemetov
Copy link
Contributor

Mostly documentation fixes, confrm to pydocstyle, add missing documentation for the argument boundary_method.

But also I removed the len(signal) < window_length constraint I added at the last minute; I forgot I wrote boundary methods to handle that case a few months ago.

@dshemetov
Copy link
Contributor Author

Should probably be merged before @chinandrew's refactors go live, so that backfill is handled properly.

* mostly documentation fixes, confrm to pydocstyle
* add missing documentation for the argument boundary_method
* remove the len(signal) < window_length constraint; forgot I wrote the boundary methods to handle these cases
@dshemetov dshemetov force-pushed the dev-smoothing_patch branch from b0607ef to 4d6f65e Compare November 5, 2020 02:19
Copy link
Contributor

@chinandrew chinandrew left a comment

Choose a reason for hiding this comment

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

one comment otherwise lgtm

@dshemetov
Copy link
Contributor Author

Cool. You know, I'm running into issues where JHU tests are giving the smoother an array full of NANs. That makes me want to change the nan handling to be a bit more permissive (a full array of nans should pass through, an array left-padded with nans should start imputing only once the first value is seen, etc.), so I think I'll handle that in this PR too.

@chinandrew
Copy link
Contributor

Cool. You know, I'm running into issues where JHU tests are giving the smoother an array full of NANs. That makes me want to change the nan handling to be a bit more permissive (a full array of nans should pass through, an array left-padded with nans should start imputing only once the first value is seen, etc.), so I think I'll handle that in this PR too.

If it's independent of this change, I'd recommend making it another PR just to keep things clean.

@dshemetov
Copy link
Contributor Author

Noted. I'll do that.

Copy link
Contributor

@chinandrew chinandrew left a comment

Choose a reason for hiding this comment

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

lgtm, only test failing is the one that #476 fixes.

Copy link
Contributor

@krivard krivard left a comment

Choose a reason for hiding this comment

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

lgtm

@krivard krivard merged commit c303bc1 into main Nov 10, 2020
@krivard krivard deleted the dev-smoothing_patch branch November 10, 2020 14:18
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.

3 participants