c24348fe44025c97a7cf7a680b35dfbee3993bf1,PyPi/utils/parameters.py,Parameter,__call__,#Parameter#Any#,15
Before Change
def __call__(self, idx):
assert idx.ndim == 1 or idx.shape[0] == 1
idx = tuple(idx.ravel()) if idx.shape != (1,) else 0
self._update(idx)
After Change
self.value = value
def __call__(self, idx):
if isinstance(idx, list):
assert len(idx) == 2
idx = np.concatenate((idx[0].astype(np.int),
idx[1].astype(np.int)),
axis=1).ravel()
else:
idx = idx.astype(np.int)
assert idx.ndim == 1
idx = tuple(idx) if idx.size == self._n_updates.ndim else 0
self._update(idx)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: AIRLab-POLIMI/mushroom
Commit Name: c24348fe44025c97a7cf7a680b35dfbee3993bf1
Time: 2017-06-08
Author: carlo.deramo@gmail.com
File Name: PyPi/utils/parameters.py
Class Name: Parameter
Method Name: __call__
Project Name: AIRLab-POLIMI/mushroom
Commit Name: c24348fe44025c97a7cf7a680b35dfbee3993bf1
Time: 2017-06-08
Author: carlo.deramo@gmail.com
File Name: PyPi/utils/parameters.py
Class Name: Parameter
Method Name: __call__
Project Name: nipy/dipy
Commit Name: ede16d13e33e1fa0708e2547abee9a9c7dace1d1
Time: 2016-08-29
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/fwdti.py
Class Name:
Method Name: nlls_fit_tensor
Project Name: nipy/dipy
Commit Name: acdb39c2f40fa90a033e895f09d8d02b02e85e9b
Time: 2016-08-29
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/fwdti.py
Class Name:
Method Name: nlls_fit_tensor