-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pool decorator to functions (#489)
* add pool decorator to previous functions * Fix pool_decorator * add pool_decorator to dotfinder.py and expected.py * combined import command for pool_decorator with others * add tests for pooled functions to check if outputs are the same as using regular map * changed lambda func to a def func * try to set start method for multiprocessing * test pool.map insteand of pool.imap * switch multiprocessing to multiprocess * swith to multiprocess * change job back to lambda * change transforms back to lambda function * streamlined tests for multiprocess * move multiprocess code from cli/coverage and cli/sample to api * add nproc to test_sample and reduce the random sampling size * decrease test_sample sampling value * change frac to 0.1 in test_sample * regulate tolerance in test_sample * 1.move logging into decorator 2. use map_functor as the argument name 3. add explicit docstring to pool_decorator 4. all pool.terminate() 5. support third-party map functor * remove unused imports * remove unused imports in cli * unified definitions of nproc and map_functor * Update pool_decorator docstring --------- Co-authored-by: Nezar Abdennur <nabdennur@gmail.com>
- Loading branch information
Showing
26 changed files
with
274 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.