211aa0338832919b41cedf4ffb8ca26369048a18,src/biopython/structure/integrity.py,,check_bond_continuity,#Any#Any#Any#,41

Before Change


    sq_distance = np.sum(diff**2, axis=1)
    sq_min_len = min_len**2
    sq_max_len = max_len**2
    discontinuity = np.where( ((sq_distance < sq_min_len) |
                               (sq_distance > sq_max_len)) )
    return discontinuity[0] + 1

After Change


    discon_mask = np.concatenate(([False], discon_mask))
    // discon_mask is true for discontinuity in backbone
    // map it back to get discontinuity for original atom array
    discon_mask_full = np.zeros(array.array_length(), dtype=bool)
    discon_mask_full[backbone_mask] = discon_mask
    discontinuity = np.where(discon_mask_full)
    return discontinuity[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: biotite-dev/biotite
Commit Name: 211aa0338832919b41cedf4ffb8ca26369048a18
Time: 2017-10-02
Author: patrick.kunzm@gmail.com
File Name: src/biopython/structure/integrity.py
Class Name:
Method Name: check_bond_continuity


Project Name: SheffieldML/GPy
Commit Name: 336f8e11c48bb4e749b9f389907c450e44f02786
Time: 2013-10-28
Author: alan.daniel.saul@gmail.com
File Name: GPy/examples/regression.py
Class Name:
Method Name: toy_poisson_rbf_1d


Project Name: SheffieldML/GPy
Commit Name: 336f8e11c48bb4e749b9f389907c450e44f02786
Time: 2013-10-28
Author: alan.daniel.saul@gmail.com
File Name: GPy/examples/regression.py
Class Name:
Method Name: toy_poisson_rbf_1d_laplace