fbabf9f5f90954bc9bffc79c822577d8d8fda143,brian2/units/unitsafefunctions.py,,linspace,#Any#Any#Any#Any#Any#Any#,135

Before Change


                                               "same units."),
                                start=start, stop=stop)
    dim = getattr(start, "dim", DIMENSIONLESS)
    return Quantity(np.linspace(np.asarray(start), np.asarray(stop), num=num,
                    endpoint=endpoint, retstep=retstep, dtype=None),
                    dim=dim, copy=False)


// these functions discard subclass info -- maybe a bug in numpy?
ravel = wrap_function_to_method(np.ravel)

After Change


    else:
        result = np.linspace(np.asarray(start), np.asarray(stop), num=num,
                             endpoint=endpoint, retstep=retstep, dtype=dtype)
    return Quantity(result, dim=dim, copy=False)


// these functions discard subclass info -- maybe a bug in numpy?
ravel = wrap_function_to_method(np.ravel)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: brian-team/brian2
Commit Name: fbabf9f5f90954bc9bffc79c822577d8d8fda143
Time: 2015-10-08
Author: marcel.stimberg@ens.fr
File Name: brian2/units/unitsafefunctions.py
Class Name:
Method Name: linspace


Project Name: brian-team/brian2
Commit Name: 9ca7138d7ca7a43a56728017501c72f6f2095393
Time: 2016-03-09
Author: marcel.stimberg@inserm.fr
File Name: brian2/units/fundamentalunits.py
Class Name: Quantity
Method Name: _binary_operation


Project Name: brian-team/brian2
Commit Name: d16997291d483c6fcdb0e94835abe9f97b15cb4e
Time: 2013-08-04
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name: Quantity
Method Name: with_dimensions