tranchestatus tostring touchup
This commit is contained in:
@@ -375,11 +375,11 @@ class Tranche:
|
|||||||
if self.minLine.intercept or self.minLine.slope:
|
if self.minLine.intercept or self.minLine.slope:
|
||||||
msg += f' >{self.minLine.intercept:.5g}'
|
msg += f' >{self.minLine.intercept:.5g}'
|
||||||
if self.minLine.slope:
|
if self.minLine.slope:
|
||||||
msg += f'{self.minLine.slope:+.5g}/s({self.minLine.value():5g})'
|
msg += f'{self.minLine.slope:+.5g}/s={self.minLine.value():5g}'
|
||||||
if self.maxLine.intercept or self.maxLine.slope:
|
if self.maxLine.intercept or self.maxLine.slope:
|
||||||
msg += f' <{self.maxLine.intercept:.5g}'
|
msg += f' <{self.maxLine.intercept:.5g}'
|
||||||
if self.maxLine.slope:
|
if self.maxLine.slope:
|
||||||
msg += f'{self.maxLine.slope:+.5g}/s({self.maxLine.value():5g})'
|
msg += f'{self.maxLine.slope:+.5g}/s={self.maxLine.value():5g}'
|
||||||
if self.rateLimitPeriod:
|
if self.rateLimitPeriod:
|
||||||
msg += f' {self.rateLimitFraction/MAX_FRACTION:.1%} every {self.rateLimitPeriod/60:.0} minutes'
|
msg += f' {self.rateLimitFraction/MAX_FRACTION:.1%} every {self.rateLimitPeriod/60:.0} minutes'
|
||||||
return msg
|
return msg
|
||||||
|
|||||||
Reference in New Issue
Block a user