Ah, yes. Escaping those back-slashes may be the issue.

$ load $2-butene
C4H8

$ print {*}.find("SMILES","C/C=C/C")
({0:11})
$ print {*}.find("SMILES","C/C=C\C")
({0:11})
$ print {*}.find("SMILES","C/C=C\\C")
({})

So, you see, the real problem is that we are not getting an error message
from that second version. I will see if I can get that happening, although
in this particular mode, what will probably be returned is an empty atom
set, not a string error.

Note that  if doing this in JavaScript,  you probably have to escape TWICE:

Jmol.evaluateVar(jmolApplet0, "{*}.find('SMILES','C/C=C\\\\C')")

*Array [  ]*


because it has to go through two stages of conversion.

Bob
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to