From 8dd111ab8dc7f38ec5351c4c466bd7131749b493 Mon Sep 17 00:00:00 2001 From: dzalkind Date: Tue, 19 Oct 2021 10:56:24 -0600 Subject: [PATCH] Try gen_oloc in test --- examples/13_DTQP/gen_oloc.py | 3 ++- weis/test/test_examples_skinny.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/13_DTQP/gen_oloc.py b/examples/13_DTQP/gen_oloc.py index 57c79d26e..392344c44 100644 --- a/examples/13_DTQP/gen_oloc.py +++ b/examples/13_DTQP/gen_oloc.py @@ -15,7 +15,7 @@ weis_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) -if __name__ == '__main__': +def gen_oloc(): # read WEIS options: mydir = os.path.dirname(os.path.realpath(__file__)) # get path to this file @@ -145,3 +145,4 @@ print('here') +gen_oloc() diff --git a/weis/test/test_examples_skinny.py b/weis/test/test_examples_skinny.py index be1716bac..8e0af90a5 100644 --- a/weis/test/test_examples_skinny.py +++ b/weis/test/test_examples_skinny.py @@ -6,7 +6,7 @@ "03_NREL5MW_OC3_spar/weis_driver", "06_IEA-15-240-RWT/weis_driver", "09_design_of_experiments/weis_driver", - # "13_DTQP/gen_oloc", + "13_DTQP/gen_oloc", ] class TestSkinnyExamples(unittest.TestCase):