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

np.warnings.filterwarnings('ignore') no longer supported by numpy #92

Closed
milesbailey121 opened this issue Feb 19, 2024 · 3 comments
Closed

Comments

@milesbailey121
Copy link

Hi,
I've been having an issue when running sm.pl.gate_finder() it throws AttributeError: module 'numpy' has no attribute 'warnings'
This carries from np.warnings.filterwarnings('ignore') on line 148 in gate_finder().

I think I found a fix, it seem to have replaced this with the np.seterr('ignore') function in the newer versions of numpy

NumPy version = 1.26.4

Code Used:
sm.pl.gate_finder (image_path, adata, marker_of_interest, from_gate = 5, to_gate = 9, increment = 0.1, point_size=10)

@ajitjohnson
Copy link
Collaborator

@milesbailey121, thank you for identifying this bug. I have updated the script according to your suggestion. Please install the latest version of the package (1.3.5) using pip install scimap --upgrade. It would be great if you could test the function and let me know if the issue is resolved. Thank you.

@milesbailey121
Copy link
Author

@ajitjohnson I've just checked with the latest version and it works perfectly. Thank you very much for resolving the issue!

@ajitjohnson
Copy link
Collaborator

thank you :)

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

2 participants