Closed adw62 closed 2 years ago
I gyess you need at least 3 points in order to obtain a meaningful 3D superimposition. 2 points could rotate about the other axis. I'll add an extra check underneath as well. One way our of this is to calculate rmsd() as is, without the superimposition.
That sounds like it makes sense. 'One way our of this is to calculate rmsd() as is, without the superimposition.' Is that the same as just returning self.rmsd() or should something else be run?
This has been addresses here #301
Found a strange error for a specific system: example.zip
I'm prepping the systems with the API like so:
which results in:
I have tracked this down to this call of align_ligands_using_mcs():
https://github.com/UCL-CCS/TIES20/blob/fbc77f197f6fd38338730cbc64fa2e066bbfa22e/ties/topology_superimposer.py#L3306-L3310
which then fails here:
https://github.com/UCL-CCS/TIES20/blob/master/ties/topology_superimposer.py#L776-L777
It seems to fail for the case when N <= 2 and by adding this code before the superimpose_coordinates call the problem goes away:
Why does pyqcprot not like N=<2? What is causing N to be =<2?