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

Variable scopes in nilearn #1

Open
1pha opened this issue Jun 8, 2023 · 0 comments
Open

Variable scopes in nilearn #1

1pha opened this issue Jun 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@1pha
Copy link
Owner

1pha commented Jun 8, 2023

nilearn.plotting.add_overlay을 거치고 나기 전후의 array값에서 차이가 생겼음
이에 의해 nilearn.image.resample_img 메소드 결과가 차이가 생겼는데
문제는 add_overlay 내에서 데이터의 nan값을 처리해주는 함수가 변수 자체에 변화를 가해서 생긴 이슈.
변수 scope에 대해서 다시 공부해야할 듯...

Before

image

After

image

https://github.com/nilearn/nilearn/blob/db5a7276f01b01c47a74fa2a503c5957724ed211/nilearn/_utils/niimg.py#LL30C5-L30C19

@1pha 1pha added the bug Something isn't working label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant