delete useless and badly worded error messages

Commit
44a872ca76d5d2dd48fb0c96701bac93e721d27b
Author
Marius Peter <blendoit@gmail.com>
Author date
Committer
Marius Peter <blendoit@gmail.com>
Committer date
Changed files
creator.py
index fe3bb470..49037f43 100644..100644
@@ -103,7 +103,6 @@
103 103 print('Unable to write {} to specified directory.\n'
104 104 .format(file_name),
105 105 'Was the full path passed to the function?')
106 Removed: # It is cleaner to use this context guard to ensure file is closed
107 106 return None
108 107
109 108 def pack_info(self):
@@ -126,12 +125,6 @@
126 125 # Mean camber line
127 126 self.x_c = [] # Contains only integers from 0 to self.chord
128 127 self.y_c = [] # Contains floats
129 Removed: # Thickness
130 Removed: self.y_t = []
131 Removed: # dy_c / d_x
132 Removed: self.dy_c = []
133 Removed: # Theta
134 Removed: self.theta = []
135 128
136 129 def add_naca(self, naca_num):
137 130 """
@@ -168,9 +161,6 @@
168 161 y_c = (m / ((1 - p)**2)) * ((1 - 2 * p)
169 162 + 2 * p * (x / self.chord)
170 163 - (x / self.chord)**2)
171 Removed: else:
172 Removed: print('x-coordinate for camber is out of bounds. '
173 Removed: 'Check that 0 < x <= chord.')
174 164 return (x_c, y_c * self.chord)
175 165
176 166 def get_thickness(x):
@@ -185,9 +175,6 @@
185 175 - 0.3516 * (x / self.chord)**2
186 176 + 0.2843 * (x / self.chord)**3
187 177 - 0.1015 * (x / self.chord)**4)
188 Removed: else:
189 Removed: print('x-coordinate for thickness is out of bounds. '
190 Removed: 'Check that 0 < x <= chord.')
191 178 return y_t
192 179
193 180 def get_theta(x):
@@ -204,8 +191,7 @@
204 191 z_u = float()
205 192 if 0 <= x < self.chord:
206 193 x_u = x - get_thickness(x) * sin(get_theta(x))
207 Removed: z_u = get_camber(x)[1] + get_thickness(x) * \
208 Removed: cos(get_theta(x))
194 Added: z_u = get_camber(x)[1] + get_thickness(x) * cos(get_theta(x))
209 195 elif x == self.chord:
210 196 x_u = x - get_thickness(x) * sin(get_theta(x))
211 197 z_u = 0 # Make upper curve finish at y = 0
@@ -216,8 +202,7 @@
216 202 z_l = float()
217 203 if 0 <= x < self.chord:
218 204 x_l = (x + get_thickness(x) * sin(get_theta(x)))
219 Removed: z_l = (get_camber(x)[1] - get_thickness(x)
220 Removed: * cos(get_theta(x)))
205 Added: z_l = (get_camber(x)[1] - get_thickness(x) * cos(get_theta(x)))
221 206 elif x == self.chord:
222 207 x_l = (x + get_thickness(x) * sin(get_theta(x)))
223 208 z_l = 0 # Make lower curve finish at y = 0
@@ -234,9 +219,6 @@
234 219 for x in x_chord:
235 220 self.x_c.append(get_camber(x)[0])
236 221 self.y_c.append(get_camber(x)[1])
237 Removed: self.y_t.append(get_thickness(x))
238 Removed: self.dy_c.append(x)
239 Removed: self.theta.append(get_theta(x))
240 222 self.x_u.append(get_upper_coordinates(x)[0])
241 223 self.z_u.append(get_upper_coordinates(x)[1])
242 224 self.x_l.append(get_lower_coordinates(x)[0])
main.py
index d6157d38..9d9db825 100644..100644
@@ -75,7 +75,7 @@
75 75 af.stringer.print_info(2)
76 76
77 77 # Plot components with matplotlib
78 Removed: creator.plot(af, af.spar, af.stringer)
78 Added: # creator.plot(af, af.spar, af.stringer)
79 79
80 80 # Save component info
81 81 af.save_info(SAVE_PATH, _)