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

Calculate the np.nan array on the fly of not available #101

Merged
merged 2 commits into from
Jul 5, 2019

Conversation

flekschas
Copy link
Member

Description

What was changed in this pull request?

For npvector, calculate the np.nan array on the fly of not available.

Why is it necessary?

This simplifies the code the user has to write. Also:

  1. It's fast enough
  2. One is not forced anymore to provide not_nan_array to get normalization. Before it was confusing as the docstring doesn't mention normalization and no normalization seems an odd behavior.

Checklist

  • [ ] Unit tests added or updated
  • Updated CHANGELOG.md

1. It's fast enough
2. Otherwise one is forced to provide `not_nan_array` to get normalization, which is confusing as the doc string doesn't mention that and no normalization seems odd
Copy link
Member

@pkerpedjiev pkerpedjiev left a comment

Choose a reason for hiding this comment

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

I think this is fine but would it be difficult to add a small test demonstrating a use case?

@flekschas
Copy link
Member Author

Added #102 regarding the test! Will try to get that done asap

@flekschas flekschas merged commit 598c673 into develop Jul 5, 2019
@flekschas flekschas deleted the flekschas/simplify-npvector branch July 5, 2019 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants