28251c5bf7452fa1185fa6f93b9c34d1196ea16d,pynets/core/thresholding.py,,local_thresholding_prop,#Any#Any#,593
Before Change
// Enforce original dimensionality by padding with zeros.
if conn_matrix_bin.shape != conn_matrix.shape:
if conn_matrix.shape[0] > conn_matrix_bin.shape[0]:
result = np.zeros(conn_matrix.shape)
result[:conn_matrix_bin.shape[0], :conn_matrix_bin.shape[1]] = conn_matrix_bin
conn_matrix_thr = np.multiply(conn_matrix, result)
else:
result = np.zeros(conn_matrix_bin.shape)
After Change
try:
conn_matrix_thr = np.multiply(conn_matrix, conn_matrix_bin)
except ValueError:
print("Dimensionality inconsistent after MST thresholding. Check raw graph output manually for debugging.")
return conn_matrix_thr
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: dPys/PyNets
Commit Name: 28251c5bf7452fa1185fa6f93b9c34d1196ea16d
Time: 2020-06-13
Author: dpisner@utexas.edu
File Name: pynets/core/thresholding.py
Class Name:
Method Name: local_thresholding_prop
Project Name: nipy/dipy
Commit Name: b125873cb6e0fa9f99137b256ac5fc602e4b72f1
Time: 2014-01-17
Author: Samuel.St-Jean@usherbrooke.ca
File Name: dipy/denoise/tests/test_nlmeans.py
Class Name:
Method Name: test_nlmeans
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