-
Notifications
You must be signed in to change notification settings - Fork 13
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
Pause needed after network creation #106
Comments
Additional details. This line throws an error sometimes... https://github.com/cytoscape/RCy3/blob/master/R/Networks.R#L992 The prior call to CyREST occurs on this line: https://github.com/cytoscape/RCy3/blob/master/R/Networks.R#L956 I suspect that CyREST is returning before the network view is actually ready. |
And here's a little troubleshooting script in R. Run this with RCy3 loaded and it should throw an error, usually in the first or second attempt. https://www.dropbox.com/s/q61hg6bqk15d085/cyrest.R?dl=0 Note that adding a sleep function before attempting to apply the visual style will completely "fix" the problem. |
Confirmed error in 3.8.0 and 3.8.1. |
@dotasek Any ideas on this one? Would be great to include a simple fix in 3.8.2. |
I added a tunable to set the network for the apply style endpoint. This goes around the issue of selectedNetworkViews. The committed code is on this branch of cytoscape-impl: https://github.com/cytoscape/cytoscape-impl/tree/cyrest-106 Your original code needs a slight modification to work without a pause:
|
I think we have a synchronicity issue (see cytoscape/RCy3#98).
Can you help me diagnose if the issue is with CyREST or Cytoscape? Ideas for how to fix this?
The text was updated successfully, but these errors were encountered: