-
Notifications
You must be signed in to change notification settings - Fork 19
PopED + babelmixr2 for windows #79
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
base: master
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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