e364579d5fe914d7dc410b4e568b216ad0928cc1,src/biotite/structure/basepairs.py,,_get_proximate_basepair_candidates,#Any#Any#Any#,19
Before Change
for candidate in candidates:
partner_id = [array[int(candidate)].res_id,
array[int(candidate)].chain_id]
if ( (distance(
array[int(candidate)].coord, atom.coord) > min_cutoff
)
& ((partner_id + atom_id) not in basepair_candidates)
):
basepair_candidates.append(atom_id + partner_id)
return basepair_candidates
After Change
basepair_candidates = []
for ix,iy in np.ndindex(adjacency_matrix.shape):
if (adjacency_matrix[ix][iy]):
candidate = [array[ix].res_id, array[ix].chain_id]
partner = [array[iy].res_id, array[iy].chain_id]
if ((distance(array[ix].coord, array[iy].coord) > min_cutoff)
& ((partner + candidate) not in basepair_candidates)):
basepair_candidates.append(candidate + partner)
return basepair_candidates
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: biotite-dev/biotite
Commit Name: e364579d5fe914d7dc410b4e568b216ad0928cc1
Time: 2020-05-07
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/basepairs.py
Class Name:
Method Name: _get_proximate_basepair_candidates
Project Name: arviz-devs/arviz
Commit Name: e7baa93f4f397c2955cb30c83bf483f26e67f2f8
Time: 2018-10-08
Author: ahartikainen@users.noreply.github.com
File Name: arviz/stats/diagnostics.py
Class Name:
Method Name: _neff_ufunc
Project Name: arviz-devs/arviz
Commit Name: e7baa93f4f397c2955cb30c83bf483f26e67f2f8
Time: 2018-10-08
Author: ahartikainen@users.noreply.github.com
File Name: arviz/stats/diagnostics.py
Class Name:
Method Name: _rhat_ufunc