Skip to content

Commit

Permalink
fix ill-defined test for correct array shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
RHammond2 committed Dec 12, 2023
1 parent 5af909e commit 8a59a73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/floris_unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See https://floris.readthedocs.io for documentation


from copy import deepcopy
from pathlib import Path

import yaml
Expand Down Expand Up @@ -49,7 +50,11 @@ def test_init():

def test_asdict(turbine_grid_fixture: TurbineGrid):

floris = Floris.from_dict(DICT_INPUT)
grid_dict = deepcopy(DICT_INPUT)
grid_dict["flow_field"]["wind_speeds"] = turbine_grid_fixture.wind_speeds
grid_dict["flow_field"]["wind_directions"] = turbine_grid_fixture.wind_directions

floris = Floris.from_dict(grid_dict)
floris.flow_field.initialize_velocity_field(turbine_grid_fixture)
dict1 = floris.as_dict()

Expand Down

0 comments on commit 8a59a73

Please sign in to comment.