Neighbor Search #279
-
using Neighbour Search, I want to get bond lengths or interatomic distances:
<gemmi.NeighborSearch with grid 3, 4, 3>
gives me: Si3 symmetry op #0 which is partially right and partially wrong The distances from Si3 to the nearest neighbor is between 1.60 A and 1.70 A. I don't understand what is wrong? I have P1 structure and fractional coordinates |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
From this description I don't know if it's right or wrong. |
Beta Was this translation helpful? Give feedback.
-
and you search in the radius of 4.0A, getting also the second nearest neighbors. If I limit the search to 2.0 I get: find neighbors of Si1 <gemmi.Fractional(0.6784, 0.6701, 0.0983)> Note that the distance to O3 is calculated through the PBC. It can be calculated in gemmi with:
|
Beta Was this translation helpful? Give feedback.
and you search in the radius of 4.0A, getting also the second nearest neighbors.
Add
max_dist=2.0
to ns.find_site_neighbors().If I limit the search to 2.0 I get:
find neighbors of Si1 <gemmi.Fractional(0.6784, 0.6701, 0.0983)>
O3 symmetry op #0 <gemmi.Fractional(0.685, 0.6573, 0.8891)> 1.619205318374039
O6 symmetry op #0 <gemmi.Fractional(0.5806, 0.6616, 0.0572)> 1.6229646008471021
O4 symmetry op #0 <gemmi.Fractional(0.7353, 0.6063, 0.2558)> 1.6235125698772466
O9 symmetry op #0 <gemmi.Fractional(0.7094, 0.7544, 0.1882)> 1.639821180192079
Note that the distance to O3 is calculated through the PBC. It can be cal…