[chimera-dev] tangent wave
Tom Goddard
goddard at sonic.net
Wed Mar 26 21:49:11 PDT 2014
Hi Matt,
If you run “chimera —send somecode.py” from a shell it will try to use a socket to send the Python file to an already running Chimera. Writing code to establish your own socket connection will be a major pain. It has to be integrated into the Tk event loop.
You’d probably be better off sending Chimera an http request using the Chimera RESTServer capability described here
http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/restserver/restserver.html
An older mechanism of talking to Chimera by sending commands to it standard input (stdin), but this requires starting Chimera with another process piping the commands to Chimera.
http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/readstdin/readstdin.html
I recommend trying RESTServer.
Tom
On Mar 26, 2014, at 2:37 AM, Dougherty, Matthew T wrote:
> Hi,
>
> I just purchased a Tangent Wave that I plan to interface into chimera.
>
> The best design is to use sockets. Is there any precedence for using sockets in chimera?
>
>
> Matthew Dougherty
> National Center for Macromolecular Imaging
> Baylor College of Medicine
> _______________________________________________
> Chimera-dev mailing list
> Chimera-dev at cgl.ucsf.edu
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev
>
More information about the Chimera-dev
mailing list