I have been getting some confusing results while trying to use the Load
"@data" method of loading. Jmol seems to be parsing | and newline
characters differently.
In the console application, this script command:
mod = '5 \n MolName22Jun2012180152 \n C -0.00025 -0.00025 -0.00025 \n C
0.64018 0.64018 0.64018 \n C -0.64075 -0.64075 0.64049 \n C -0.64075
0.64049 -0.64075 \n C 0.64049 -0.64075 -0.64075';try{ LOAD '@mod';reset
mod;}catch(e){}
Will make 5 carbons in a tetrahedral shape, which it is supposed to (I
think?). It does the same using the Jmol applet on ubuntu using IcedTea
(firefox and chrome), but the applet fails on windows using sun Java 7.
(firefox and chrome) Instead, on Windows, it loads 5 unknown (Xx) atoms,
in a flat plane. I think as a JME format, not XYZ. I want the windows
version to work the same as the Ubuntu, what do I need to do to make that
work?
The script:
mod = '5 | MolName22Jun2012180152 | C -0.00025 -0.00025 -0.00025 | C
0.64018 0.64018 0.64018 | C -0.64075 -0.64075 0.64049 | C -0.64075 0.64049
-0.64075 | C 0.64049 -0.64075 -0.64075';try{ LOAD '@mod';reset
mod;}catch(e){}
Will load a methane molecule on all platforms, this doesn't match the input
at all. I thought Jmol was supposed to treat pipes and newlines the same
in this case. If you get rid of the spaces around the pipes, other weird
things happened.
Any idea what's happening?
-James Wonsever
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users