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

Examine the preserve_nan method in replace_epochs #24

Open
bburan opened this issue Mar 21, 2018 · 0 comments
Open

Examine the preserve_nan method in replace_epochs #24

bburan opened this issue Mar 21, 2018 · 0 comments

Comments

@bburan
Copy link
Contributor

bburan commented Mar 21, 2018

I'm skeptical this is required. This suggests there's a deeper bug. For example, this works just fine without needing the preserve NaN magic:

x = np.arange(10, dtype=np.float)
y = np.arange(2, dtype=np.float)
y[0] = np.nan

print(x)
print(y)

x[4:6] = y
print(x)

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

No branches or pull requests

1 participant