From 32d1fc787f9c33b85bf7a79320f024c59ec18150 Mon Sep 17 00:00:00 2001 From: dokato Date: Thu, 9 Jun 2016 13:27:06 +0200 Subject: [PATCH] symbol argument added to Constant --- lems/model/component.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lems/model/component.py b/lems/model/component.py index 7f9b6c1..49ceafc 100644 --- a/lems/model/component.py +++ b/lems/model/component.py @@ -219,7 +219,7 @@ class Constant(LEMSBase): Stores a constant specification. """ - def __init__(self, name, value, dimension = None, description = ''): + def __init__(self, name, value, dimension = None, symbol = None, description = ''): """ Constructor. @@ -229,6 +229,10 @@ def __init__(self, name, value, dimension = None, description = ''): self.name = name """ Name of the constant. @type: str """ + + self.symbol = symbol + """ Symbol of the constant. + @type: str """ self.value = value """ Value of the constant. @@ -253,6 +257,7 @@ def toxml(self): return '