4fc2fed2a6e3da28de4d77b4e3917952a0dfa562,brian2/core/variables.py,VariableView,__repr__,#VariableView#,310
Before Change
return self
def __repr__(self):
if self.unit is None or have_same_dimensions(self.unit, Unit(1)):
return "<%s.%s_: %r>" % (self.group.name, self.variable.name,
self.variable.get_value())
else:
After Change
def __repr__(self):
varname = self.variable.name
if self.unit is None:
varname += "_"
return "<%s.%s_: %r>" % (self.group.name, varname,
self[:])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: brian-team/brian2
Commit Name: 4fc2fed2a6e3da28de4d77b4e3917952a0dfa562
Time: 2013-08-12
Author: marcel.stimberg@ens.fr
File Name: brian2/core/variables.py
Class Name: VariableView
Method Name: __repr__
Project Name: brian-team/brian2
Commit Name: f3c19b1fa263ee61bdf605267e21b8e355f12bcd
Time: 2013-10-03
Author: marcel.stimberg@ens.fr
File Name: brian2/core/variables.py
Class Name: VariableView
Method Name: __setitem__
Project Name: brian-team/brian2
Commit Name: b2614e6be454735b2e9caed9fc3a79dd7d64420d
Time: 2013-07-25
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/group.py
Class Name: Group
Method Name: __init__