PoonLab / OpenRDP

An open-source re-implementation of the RDP4 recombination detection program
GNU General Public License v3.0
45 stars 9 forks source link

进程池使用错误 (Process pool usage error) #87

Closed pathogen-detection closed 4 weeks ago

pathogen-detection commented 2 months ago
  with multiprocessing.Pool(self.np) as p:
        tempfiles = p.map(self.scan, range(0, align.shape[1], self.step_size)),

在Windows系统中上述脚本只能放在if name == 'main':之下。

ArtPoon commented 2 months ago

在Windows系统中上述脚本只能放在if name == 'main':之下 In Windows systems, the above script can only be placed under if name == 'main':

Thanks for reporting this issue. We'll look into it.

ArtPoon commented 1 month ago

I think we will be deprecating multiprocessing in favour of mpi4py for bootscan, see #85

GopiGugan commented 1 month ago

I wasn't able to reproduce this issue on a Windows 10 VM using the latest version of openrdp. Python version 3.10.11:

image

@pathogen-detection can you please provide steps to reproduce this issue?

ArtPoon commented 1 month ago

Close issue upon moving MPI functionality into main branch