PopED + babelmixr2 for windows#79
Conversation
|
In general it saves the |
|
Had to add |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #79 +/- ##
==========================================
+ Coverage 44.52% 44.68% +0.15%
==========================================
Files 120 121 +1
Lines 8810 8892 +82
==========================================
+ Hits 3923 3973 +50
- Misses 4887 4919 +32 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
As |
|
The error in oldrel-1 is unrelated to this pull request. |
|
Thanks Andy! |
There was a problem hiding this comment.
Why do we need to add
start_parallel_env <- new.env(parent=emptyenv())
start_parallel_env$babelmixr2 <- NULL
outside of the function?
There was a problem hiding this comment.
This is so it can be assigned in a global like environment.
The actual function is
parallel::clusterCall(cl, babelmixr2::.popedCluster, start_parallel_env$babelmixr2)|
Hi Matt, Thanks for all your work on this. I am wondering if there is any way to achieve the same result without having to add the following code snippet in, essentially, every PopED function?
Could you supply a minimal working example that I could test a bit with? My thought is that it should be a bit more efficient to just pass Andy |
|
parallel::clusterCall(cl, babelmixr2::.popedCluster, start_parallel_env$babelmixr2)
I originally tried this, but it dropped the |
|
I simply used your examples and modified it. You could try the warfarin one: |
Hi @andrewhooker
This allows windows based
PopEDmodels from babelmixr2 to be run in parallel without modifying any user code. This mean the same user code works on windows and linux/mac