You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have another problem, maybe it's very easy to solve. After running the ipyrad pipeline, i tried to run the structure analysis. Everything seems to work without error messages, but after struct.run nothing happens for days.
When running the structure pipeline i needed to restrict the number of used CPU to 10. With more CPUs there was also no progress. Is there any option to do this for the structure toolkit? Or are there other solution I could try. Maybe I used wrong parameters?!
Hello,
Thanks for sharing all the notebook code you're using, it's helpful to see what you're doing. What I see here is that by setting auto=True in the struct.run call you are actually asking it to automatically launch an ipyparallel cluster using all cores (the default). In some cases this can cause the process to hang, because the timing can sometimes be off when using all cores and it can deadlock. The solution to this is to start an ipyparallel cluster by hand, and then pass in the cluster to the struct.run call, like this:
On the command line on the machine you intend to run structure on, open a terminal and activate the ipyrad environment, then launch an ipcluster instance:
Then inside your notebook, at the top when you load modules do this:
import ipyparallel as ipp
ipyclient = ipp.Client(cluster_id="structure")
In a new cell you can verify it worked by asking how many engines the ipyclient has (this should say ten, and if it doesn't run it again because sometimes it takes a second for all the engines to launch):
len(ipyclient)
Then when you call struct.run, modify the call to tell structure to use the cluster you just launched, like this:
Hello,
I have another problem, maybe it's very easy to solve. After running the ipyrad pipeline, i tried to run the structure analysis. Everything seems to work without error messages, but after
struct.run
nothing happens for days.When running the structure pipeline i needed to restrict the number of used CPU to 10. With more CPUs there was also no progress. Is there any option to do this for the structure toolkit? Or are there other solution I could try. Maybe I used wrong parameters?!
Best wishes
Robert
The text was updated successfully, but these errors were encountered: