Skip to content

Commit

Permalink
[BUGFIX] Adjust hub_height shape for simulation state (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
misi9170 authored Mar 19, 2024
1 parent c7f8f36 commit 4b33139
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion floris/simulation/farm.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,11 @@ def finalize(self, unsorted_indices):
@property
def coordinates(self):
return np.array([
np.array([x, y, z]) for x, y, z in zip(self.layout_x, self.layout_y, self.hub_heights)
np.array([x, y, z]) for x, y, z in zip(
self.layout_x,
self.layout_y,
self.hub_heights if len(self.hub_heights.shape) == 1 else self.hub_heights[0,0]
)
])

@property
Expand Down

0 comments on commit 4b33139

Please sign in to comment.