manu-mannattil / nolitsa

A Python module implementing some standard algorithms used in nonlinear time series analysis
BSD 3-Clause "New" or "Revised" License
172 stars 46 forks source link

Refactored utils.parallel_map to work without Pool if processors is set to 1 #1

Closed Zurga closed 6 years ago

Zurga commented 6 years ago

If functions are called from within a Pool in a parent script, the parent script will fail because it is unable to create new Process instances in a daemonized environment. By returning early without using the Pool in utils.parallel_map, this is averted.

Love the library btw, very well done

manu-mannattil commented 6 years ago

Thanks!