Closed RasmusFonseca closed 5 years ago
You need to provide more detail than "changes in behavior" for me to be able to do anything. What is the expected output? What is the output you're getting? I can't just glance at your code and see how the new release affects your function call. What Python version? What OS?
I don't know why you're using the TCL interface and parsing the output when native Python functionality has always existed for atomsel.
chains = safely_parsed_evaltcl("$%s get chain" % selection_id)
is trivially:
selection.chains
(or in vmd-python 2.*, selection.get("chains")
which is backwards compatible but will emit DeprecationWarning in vmd-python 3. )
Please read the documentation for atomsel: https://vmd.robinbetz.com/atomsel.html
Re-writing your code to make full use of the vmd-python interface may fix the problems you're seeing.
Fixed in version 3.0.5
We're seeing changes in behavior related to one or more of these get-commands. Any idea what changed?
https://github.com/getcontacts/getcontacts/blob/e403219c6721706023b4b33ae97c7406754d3f7d/contact_calc/contact_utils.py#L196-L202
https://github.com/getcontacts/getcontacts/issues/54