06757876f6f372e9df1ddcbe00bf97fab451b42e,brian2/units/fundamentalunits.py,,fail_for_dimension_mismatch,#Any#Any#Any#,96

Before Change


        return

    dim1 = get_dimensions(np.asanyarray(obj1))
    dim2 = get_dimensions(np.asanyarray(obj2)) if not obj2 is None else DIMENSIONLESS   

    if not dim1 is dim2:
        // Special treatment for "0":

After Change


    if obj2 is None:
        dim2 = DIMENSIONLESS
    else:
        dim2 = get_dimensions(np.asanyarray(obj2))

    if not dim1 is dim2:
        // Special treatment for "0":
        // if it is not a Quantity, it has "any dimension".
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: brian-team/brian2
Commit Name: 06757876f6f372e9df1ddcbe00bf97fab451b42e
Time: 2012-11-28
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name:
Method Name: fail_for_dimension_mismatch


Project Name: brian-team/brian2
Commit Name: 9a44bfee4725073937dc2c96f1c89ca30bd641c8
Time: 2012-10-24
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name:
Method Name: have_same_dimensions


Project Name: brian-team/brian2
Commit Name: 3cdf8cfd51203660c828e721815f0200d79a0766
Time: 2013-01-14
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name: Quantity
Method Name: has_same_dimensions


Project Name: brian-team/brian2
Commit Name: 3ae6a903d476af83b6ca467e93aa6b291711d876
Time: 2013-01-14
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name: Quantity
Method Name: _binary_operation