fa588a093219ac8dcdc4f087aefe55c4d62b5895,brian2/units/fundamentalunits.py,,get_dimensions,#Any#,512

Before Change


    dim: `Dimension`
        The dimensions of the `obj`.
    
    if isNumberType(obj) and not isinstance(obj, Quantity):
        return DIMENSIONLESS
    try:
        return obj.dimensions

After Change


    dim: `Dimension`
        The dimensions of the `obj`.
    
    if (isinstance(obj, numbers.Number) or isinstance(obj, np.ndarray)
        and not isinstance(obj, Quantity)):
        return DIMENSIONLESS
    try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: brian-team/brian2
Commit Name: fa588a093219ac8dcdc4f087aefe55c4d62b5895
Time: 2013-03-28
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name:
Method Name: get_dimensions


Project Name: brian-team/brian2
Commit Name: fa588a093219ac8dcdc4f087aefe55c4d62b5895
Time: 2013-03-28
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name:
Method Name: is_scalar_type


Project Name: nilearn/nilearn
Commit Name: 4c14115412ed569c7e6cf763c437c9c66e297482
Time: 2015-03-05
Author: bcipolli@ucsd.edu
File Name: nilearn/plotting/displays.py
Class Name: BaseStackedSlicer
Method Name: find_cut_coords