summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example_airfoil.py16
-rw-r--r--tools/creator.py2
2 files changed, 9 insertions, 9 deletions
diff --git a/example_airfoil.py b/example_airfoil.py
index f09ea7f..0fd0aba 100644
--- a/example_airfoil.py
+++ b/example_airfoil.py
@@ -44,7 +44,7 @@ SAVE_PATH = 'C:/Users/blend/github/UCLA_MAE_154B/save'
af = creator.Airfoil.from_dimensions(CHORD_LENGTH, SEMI_SPAN)
af.add_naca(NACA_NUM)
af.add_mass(AIRFOIL_MASS)
-# af.info_print(2)
+af.info_print(2)
af.info_save(SAVE_PATH, 'foo_name')
# Create spar instance
@@ -56,7 +56,7 @@ af.spar.add_coord(af, 0.57)
af.spar.add_spar_caps(SPAR_CAP_AREA)
af.spar.add_mass(SPAR_MASS)
af.spar.add_webs(SPAR_THICKNESS)
-# af.spar.info_print(2)
+af.spar.info_print(2)
af.spar.info_save(SAVE_PATH, 'foo_name')
# Create stringer instance
@@ -70,7 +70,7 @@ af.stringer.add_coord(af,
af.stringer.add_area(STRINGER_AREA)
af.stringer.add_mass(STRINGER_MASS)
af.stringer.add_webs(SKIN_THICKNESS)
-# af.stringer.info_print(2)
+af.stringer.info_print(2)
af.stringer.info_save(SAVE_PATH, 'foo_name')
# Plot components with matplotlib
@@ -80,16 +80,16 @@ creator.plot_geom(af, True)
eval = evaluator.Evaluator(af)
# The analysis is performed in the evaluator.py module.
eval.analysis(1, 1)
-# eval.info_print(2)
+eval.info_print(2)
eval.info_save(SAVE_PATH, 'foo_name')
# evaluator.plot_geom(eval)
-# evaluator.plot_lift(eval)
+evaluator.plot_lift(eval)
pop = generator.Population(10)
-# print(help(creator))
-# print(help(evaluator))
-# print(help(generator))
+print(help(creator))
+print(help(evaluator))
+print(help(generator))
# Print final execution time
print("--- %s seconds ---" % (time.time() - start_time))
diff --git a/tools/creator.py b/tools/creator.py
index 810df09..01f73ad 100644
--- a/tools/creator.py
+++ b/tools/creator.py
@@ -401,7 +401,7 @@ def plot_geom(airfoil, view: False):
plt.gca().legend(bbox_to_anchor=(1, 1),
bbox_transform=plt.gcf().transFigure)
- if view == True:
+ if view is True:
plt.show()
else:
pass
Copyright 2019--2024 Marius PETER