summaryrefslogtreecommitdiff
path: root/creator.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-21 19:40:57 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-21 19:40:57 -0700
commit6946f206a17c5155fc4e517d72c5674fb8cd759b (patch)
treee15496a9b94cd69664f0fc2eaded8c5b371149ac /creator.py
parent7729848607e1ea945a31b89b73f3a3b1c4034977 (diff)
better print_info() file titles
Diffstat (limited to 'creator.py')
-rw-r--r--creator.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/creator.py b/creator.py
index 1a4ddb7..fd09e2c 100644
--- a/creator.py
+++ b/creator.py
@@ -75,13 +75,16 @@ class Coordinates:
This function's output is piped to the 'save_coord' function below.
'''
- print(20 * '-')
- print(' CREATOR DATA ')
+ name = ' CREATOR DATA '
+ num_of_dashes = len(name)
+
+ print(num_of_dashes * '-')
+ print(name)
print('Component:', str(self))
print('Chord length:', self.chord)
print('Semi-span:', self.semi_span)
print('Mass:', self.mass)
- print(20 * '-')
+ print(num_of_dashes * '-')
print('x_u the upper x-coordinates:\n', np.around(self.x_u, round))
print('z_u the upper z-coordinates:\n', np.around(self.z_u, round))
print('x_l the lower x-coordinates:\n', np.around(self.x_l, round))
Copyright 2019--2024 Marius PETER