From 976006fbe5f0a141af1041510a640a8e71a79150 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Wed, 12 Jun 2019 11:58:00 -0700 Subject: added context guard in save_coord --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index a2dbd94..5d2e90a 100644 --- a/main.py +++ b/main.py @@ -21,7 +21,7 @@ import random import time start_time = time.time() -CHORD_LENGTH = 1000 +CHORD_LENGTH = 100 SEMI_SPAN = 200 POP_SIZE = 1 @@ -58,9 +58,9 @@ def main(): creator.plot(af, af.spar, af.stringer) # Save component coordinates - af.save_coord(SAVE_PATH) - af.spar.save_coord(SAVE_PATH) - af.stringer.save_coord(SAVE_PATH) + af.save_coord(SAVE_PATH, _) + af.spar.save_coord(SAVE_PATH, _) + af.stringer.save_coord(SAVE_PATH, _) # Print final execution time print("--- %s seconds ---" % (time.time() - start_time)) -- cgit v1.2.3