Great observation, Eric. The first issue was as simple bug.
The second has concerned me for some time. The issue is that {xxx}.yyyy will return a single value if {xxx} is a single atom. This is the sort of thing one expects: print {atomno=1}.color print @32.psi One does not expect an array there. But in programmatic terms it can be a problem if a generic function uses something like this and expects an array and then doesn't get one, as you have in this case. So how to deal with that? I have added a new modifier ".array" that forces an array if a variable is not already an array. In this way the result of x = "testing".array --> x = [ "testing" ] x = [1 2 3].array --> no change x = [[1 2 3][4 5 6][7 8 9]].array --> 3x3 array corresponding to this matrix and {altloc='A'}.array is now always an array as well. Hope this satisfies. Bob
------------------------------------------------------------------------------
_______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users