3daa1acdb68e7c305f23aa2eee308ceb8a440996,brian2/units/fundamentalunits.py,Unit,__init__,#Unit#Any#Any#Any#Any#Any#Any#Any#,1797
Before Change
self.dim = dim //: The Dimensions of this unit
if scale is None:
scale = ("", "", "", "", "", "", "")
if not len(scale) == 7:
raise ValueError("scale needs seven entries")
//: The scale for this unit (a 7-tuple)
self.scale = scale
After Change
//: a scale of 3 means 10^3, e.g. for a "k" prefix.
self.scale = scale
if name is None:
if dim is DIMENSIONLESS:
name = "Unit(1)"
else:
name = repr(dim)
if dispname is None:
if dim is DIMENSIONLESS:
dispname = "1"
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: brian-team/brian2
Commit Name: 3daa1acdb68e7c305f23aa2eee308ceb8a440996
Time: 2017-03-17
Author: marcel.stimberg@inserm.fr
File Name: brian2/units/fundamentalunits.py
Class Name: Unit
Method Name: __init__
Project Name: probcomp/bayeslite
Commit Name: 047c1206650c6524075e6509809f9810f91548d4
Time: 2015-08-25
Author: riastradh+probcomp@csail.mit.edu
File Name: src/read_csv.py
Class Name:
Method Name: bayesdb_read_csv
Project Name: pantsbuild/pants
Commit Name: cff740c5b4077bb29e4e687849b2d617a20d62f7
Time: 2014-06-17
Author: benjy@foursquare.com
File Name: src/python/pants/backend/jvm/tasks/jvm_run.py
Class Name: JvmRun
Method Name: execute