|
7 | 7 | from numpy.testing import assert_allclose |
8 | 8 |
|
9 | 9 |
|
10 | | -# class TestExamples: |
11 | | -# |
12 | | -# def test_basic_example_flh(self): |
13 | | -# # tests full load hours |
14 | | -# weather = be.get_weather_data('weather.csv') |
15 | | -# my_turbine, e126 = be.initialise_wind_turbines() |
16 | | -# be.calculate_power_output(weather, my_turbine, e126) |
17 | | -# |
18 | | -# assert_allclose(1766.6870, (e126.power_output.sum() / |
19 | | -# e126.nominal_power), 0.01) |
20 | | -# assert_allclose(1882.7567, (my_turbine.power_output.sum() / |
21 | | -# my_turbine.nominal_power), 0.01) |
| 10 | +class TestExamples: |
| 11 | + |
| 12 | + def test_basic_example_flh(self): |
| 13 | + # tests full load hours |
| 14 | + weather = be.get_weather_data('weather.csv') |
| 15 | + my_turbine, e126 = be.initialise_wind_turbines() |
| 16 | + be.calculate_power_output(weather, my_turbine, e126) |
| 17 | + |
| 18 | + assert_allclose(1766.6870, (e126.power_output.sum() / |
| 19 | + e126.nominal_power), 0.01) |
| 20 | + assert_allclose(1882.7567, (my_turbine.power_output.sum() / |
| 21 | + my_turbine.nominal_power), 0.01) |
22 | 22 | # |
23 | 23 | # def _notebook_run(self, path): |
24 | 24 | # """ |
|
0 commit comments