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

Unexpected keyword argument {'n_jobs' ...} #53

Open
yjkweon24 opened this issue Mar 5, 2023 · 2 comments
Open

Unexpected keyword argument {'n_jobs' ...} #53

yjkweon24 opened this issue Mar 5, 2023 · 2 comments

Comments

@yjkweon24
Copy link

I am running the function on my jupyter python 3.9 notebook, and I always see this TypeError: Unexpected keyword argument {'n_jobs: [# of my cpu cores]}
I am really not sure what is going on here.
Screenshot 2023-03-04 at 18 12 52

@saldanB
Copy link

saldanB commented Jun 2, 2023

@yjkweon24 Same issue and looking for solutions. Did you solve it?

@antonncheeseman
Copy link

I'm calling mnn_correct through the scanpy.external wrapper, and was having the same issue.
Solution would be to go through mnn.py and utils.py, replacing every instance of "n_jobs" with "workers", then setting "workers=[number of cpu cores] in the mnn_correct call. Seems like n_jobs is deprecated in scipy in favour of workers (see #49).

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

3 participants