| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4fb1bed commit 1dd5a87
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1378,8 +1378,9 @@ def _tf_polynomial_to_string(coeffs, var='s'): | |||
| 1378 | 1378 | """Convert a transfer function polynomial to a string.""" | |
| 1379 | 1379 | thestr = "0" | |
| 1380 | 1380 | ||
| 1381 | - # Convert coefficients to Python list of floats/numbers | ||
| 1382 | - coeffs = np.asarray(coeffs).tolist() | ||
| 1381 | + # Apply NumPy formatting | ||
| 1382 | + with np.printoptions(threshold=sys.maxsize): | ||
| 1383 | + coeffs = eval(repr(coeffs)) | ||
| 1383 | 1384 | ||
| 1384 | 1385 | # Compute the number of coefficients | |
| 1385 | 1386 | N = len(coeffs) - 1 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments