4270c3dae0b80b384c4a0026e2043345904b4fe5,deepchem/featurizers/atomic_coordinates.py,NeighborListAtomicCoordinates,_featurize,#NeighborListAtomicCoordinates#Any#,161

Before Change


    ----------
    
    N = mol.GetNumAtoms()
    coords = np.zeros((N,3))

    coords_raw = [mol.GetConformer(0).GetAtomPosition(i) for i in range(N)]
    for atom in range(N):
      coords[atom,0] = coords_raw[atom].x
      coords[atom,1] = coords_raw[atom].y
      coords[atom,2] = coords_raw[atom].z

    x_bins, y_bins, z_bins = get_cells(coords, self.neighbor_cutoff)

After Change


          if np.linalg.norm(coords[atom] - coords[neighbor_atom]) < self.neighbor_cutoff:
            neighbor_list[atom].add(neighbor_atom)
          ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// DEBUG
          all_nbrs.add(neighbor_atom)
          ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// DEBUG
          
      ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// DEBUG
      print("All neighbor-cell atoms for %d = %s" % (atom, str(all_nbrs)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepchem/deepchem
Commit Name: 4270c3dae0b80b384c4a0026e2043345904b4fe5
Time: 2016-08-31
Author: bharath.ramsundar@gmail.com
File Name: deepchem/featurizers/atomic_coordinates.py
Class Name: NeighborListAtomicCoordinates
Method Name: _featurize


Project Name: lmcinnes/pynndescent
Commit Name: 900f52578dfa46a1f3b4de33bc50e8fd6ad3693e
Time: 2019-09-17
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name:
Method Name: initialized_nnd_search


Project Name: biotite-dev/biotite
Commit Name: 7667b2408f7f109e7ca179593c5998c132651fed
Time: 2018-09-25
Author: patrick.kunzm@gmail.com
File Name: doc/examples/scripts/sequence/lexa_conservation.py
Class Name:
Method Name: