9ae556a817f4b972d8c3b678db96e712f814470f,brian2/units/fundamentalunits.py,Quantity,__mul__,#Quantity#Any#,1032
Before Change
//////// ARITHMETIC ////////
def __mul__(self, other):
if isinstance(other, np.ndarray) or is_scalar_type(other):
return Quantity.with_dimensions(np.asarray(self)*np.asarray(other),
self.dim*get_dimensions(other))
else:
return NotImplemented
def __rmul__(self, other):
return self.__mul__(other)
def __imul__(self, other):
After Change
return NotImplemented
def __mul__(self, other):
return self._binary_operation(other, operator.mul, operator.mul)
def __rmul__(self, other):
return self.__mul__(other)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 16
Instances
Project Name: brian-team/brian2
Commit Name: 9ae556a817f4b972d8c3b678db96e712f814470f
Time: 2012-11-29
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name: Quantity
Method Name: __mul__
Project Name: brian-team/brian2
Commit Name: 9ae556a817f4b972d8c3b678db96e712f814470f
Time: 2012-11-29
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name: Quantity
Method Name: __rdiv__
Project Name: brian-team/brian2
Commit Name: 9ae556a817f4b972d8c3b678db96e712f814470f
Time: 2012-11-29
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name: Quantity
Method Name: __mul__
Project Name: brian-team/brian2
Commit Name: 9ae556a817f4b972d8c3b678db96e712f814470f
Time: 2012-11-29
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name: Quantity
Method Name: __div__