mnnpy icon indicating copy to clipboard operation
mnnpy copied to clipboard

Unexpected keyword argument {'n_jobs' ...}

Open yjkweon24 opened this issue 1 year ago • 2 comments

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

yjkweon24 avatar Mar 05 '23 22:03 yjkweon24

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

saldanB avatar Jun 02 '23 12:06 saldanB

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).

antonncheeseman avatar Jun 14 '23 15:06 antonncheeseman