Small change on __str__ for SF Statement
This commit is contained in:
parent
9ab4ec360c
commit
bbfa66eb38
2 changed files with 2 additions and 2 deletions
|
|
@ -720,7 +720,7 @@ class SFParamStmt(ParamStmt):
|
|||
def __str__(self):
|
||||
scale_factor = ''
|
||||
if self.a is not None:
|
||||
scale_factor += ('X: %g' % self.a)
|
||||
scale_factor += ('X: %g ' % self.a)
|
||||
if self.b is not None:
|
||||
scale_factor += ('Y: %g' % self.b)
|
||||
return ('<Scale Factor: %s>' % scale_factor)
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@ def test_SFParamStmt_offset():
|
|||
def test_SFParamStmt_string():
|
||||
stmt = {'param': 'SF', 'a': '1.4', 'b': '0.9'}
|
||||
sf = SFParamStmt.from_dict(stmt)
|
||||
assert_equal(str(sf), '<Scale Factor: X: 1.4Y: 0.9>')
|
||||
assert_equal(str(sf), '<Scale Factor: X: 1.4 Y: 0.9>')
|
||||
|
||||
def test_LPParamStmt_factory():
|
||||
""" Test LPParamStmt factory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue