303171d1ce88637b73a08da412f221a5bc30410c,tests/structure/test_density.py,,test_density_weights,#Any#Any#,68
Before Change
assert density[1,1] == 2
// weights should not be repeated along stack dimension for NxM
stack_weights = np.array([atomic_weights, atomic_weights])
density, (x, y, z) = struc.density(stack, weights=stack_weights)
assert density.sum() == 11
assert density[0,2] == 4
assert density[1,0] == 5
assert density[1,1] == 2
After Change
// weights should be repeated along stack dimensions
density, (x, y, z) = struc.density(stack, weights=atomic_weights)
density2, (x, y, z) = struc.density(stack,
weights=np.array([atomic_weights, atomic_weights]))
assert density.sum() == density2.sum() == 11
assert density[0,2] == density2[0,2] == 4
assert density[1,0] == density2[1,0] == 5
assert density[1,1] == density2[1,1] == 2
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: biotite-dev/biotite
Commit Name: 303171d1ce88637b73a08da412f221a5bc30410c
Time: 2019-11-11
Author: bauer@cbs.tu-darmstadt.de
File Name: tests/structure/test_density.py
Class Name:
Method Name: test_density_weights
Project Name: dPys/PyNets
Commit Name: 2f6fb2cc2422c66e7c31dfff18d7f0722710ea0c
Time: 2019-03-01
Author: dpisner@utexas.edu
File Name: pynets/thresholding.py
Class Name:
Method Name: density_thresholding
Project Name: dPys/PyNets
Commit Name: 2305d9dc2458794d8fbe972e3993d3aa6e1ee8ad
Time: 2020-06-15
Author: dpisner@utexas.edu
File Name: pynets/core/thresholding.py
Class Name:
Method Name: est_density