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

Make use of pmap configurable #7

Open
baggepinnen opened this issue Apr 26, 2023 · 0 comments
Open

Make use of pmap configurable #7

baggepinnen opened this issue Apr 26, 2023 · 0 comments

Comments

@baggepinnen
Copy link

Hello and thank you for this neat package!

I was wondering if it would be possible to configure the use of pmap, or rather, to avoid it? The reason is that Pluto notebooks are incompatible with the Distributed standard library, so it is impossible to use this package from within Pluto since the use of pmap is hard coded.

I sometimes make use of the pattern

function my_function(input; map = pmap)
   ...
   map(f, x)
end

and that way, the user can pass in another mapping function, for example my_function(input; map = map). Maybe the mapping function could be added as an option?

baggepinnen added a commit to baggepinnen/GCMAES.jl that referenced this issue Apr 26, 2023
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

1 participant