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

FILTER #11

Open
yeoshine opened this issue Oct 16, 2021 · 1 comment
Open

FILTER #11

yeoshine opened this issue Oct 16, 2021 · 1 comment

Comments

@yeoshine
Copy link

建议加个filter函数,目前功能很完善,比funcat使用方便准确,多谢,加油

@yeoshine
Copy link
Author

def FILTER(S, N):
I = np.where(S == True)
if len(I[0]) == 1:
return S
for i in np.nditer(I):
S[(i + 1):(N + i + 1)] = False
return S

自己写了一个,可以参考

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