Ejemplo n.º 1
0
class TestWindFarm(unittest.TestCase):
    def setUp(self):
        filename = current_dir + '/../../examples/middelgrunden.yml'
        self.wf = WindFarm(name='farm_name', yml=filename)

    def test_get_T2T_gl_coord(self):
        np.testing.assert_array_almost_equal(
            np.array(self.wf.get_T2T_gl_coord()),
            np.array(self.wf.get_T2T_gl_coord2()))
Ejemplo n.º 2
0
class TestWindFarm(unittest.TestCase):
    def setUp(self):
        filename = current_dir + '/../../examples/middelgrunden.yml'
        self.wf = WindFarm(name='farm_name', yml=filename)

    def test_get_T2T_gl_coord(self):
        np.testing.assert_array_almost_equal(
            np.array(self.wf.get_T2T_gl_coord()),
            np.array(self.wf.get_T2T_gl_coord2()))