Hi all,

I tried to post this previously but I couldn't see it on the mailing list, so I apologise if this is a double post.

When I apply user defined restraints (this occurs at least with helix and ProSMART restraints, I haven’t tested others), and then execute a function that takes a user_defined_click() call, I often get some variation of the appended error upon clicking, often accompanied by Coot crashing. Thoughts?

This occurs when clicking any atom, not just an atom in the region of the model subject to the user defined restraints.

In the appended test case I just called user_defined_click() with atom_specs() as the function, but a similar error occurs in every instance I have tested (I use a lot of custom extensions that take user_defined_clicks as input).

Many thanks for your help!

Best, Oliver.

Error follows:

BL INFO:: command input is:  user_defined_click(1,atom_specs)
(3) " CA "/1/chainid=""/16/ALA, occ: 1 with B-factor: 1 element: " C" at (87.923,21.6894,9.6225) : 0.108119
INFO applying #<procedure #f (atom-specs)> on ((1 3 "" 16 "" " CA " ""))
Backtrace:
In unknown file:
 ?: 0* [#<procedure #f (atom-specs)> (({1} 3 "" 16 "" " CA " ""))]
In /Users/olibclarke/.coot-preferences/user-define-restraints.scm:
181: {1}* (let* (# # # # ...) (if # #))
182: 2* [list-ref (({1} 3 "" 16 "" " CA " "")) {1}]

/Users/olibclarke/.coot-preferences/user-define-restraints.scm:182:25: In procedure list-ref in expression (list-ref atom-specs 1): /Users/olibclarke/.coot-preferences/user-define-restraints.scm:182:25: Argument 2 out of range: 1

Reply via email to