Skip to content

Commit 02172b7

Browse files
committed
resolving format issues in xfrefcn.py
1 parent a370cdb commit 02172b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

control/xferfcn.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
'xferfcn.floating_point_format': '.4g'
7575
}
7676

77+
7778
def _float2str(value):
7879
_num_format = config.defaults.get('xferfcn.floating_point_format', ':.4g')
7980
return f"{value:{_num_format}}"
@@ -1246,7 +1247,7 @@ def dcgain(self, warn_infinite=False):
12461247
12471248
"""
12481249
return self._dcgain(warn_infinite)
1249-
1250+
12501251
def _isstatic(self):
12511252
"""returns True if and only if all of the numerator and denominator
12521253
polynomials of the (possibly MIMO) transfer function are zeroth order,
@@ -1407,6 +1408,7 @@ def _tf_factorized_polynomial_to_string(roots, gain=1, var='s'):
14071408

14081409
return multiplier + " ".join(factors)
14091410

1411+
14101412
def _tf_string_to_latex(thestr, var='s'):
14111413
""" make sure to superscript all digits in a polynomial string
14121414
and convert float coefficients in scientific notation

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy