Closed ejsimley closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 72.49%. Comparing base (
94fd51f
) to head (12d489e
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This small pull request fixes a few issues I found when calling the
get_freestream_turbines
method inPlantData
and running wake loss analyses for a wind plant with both turbine and tower assets.calculate_asset_distance_matrix
andcalculate_asset_direction_matrix
, the diagonals of the matrices weren't getting set to np.inf like we expected. This could possibly be because of a new pandas version.get_freestream_turbines
when there are tower assets in addition to turbine assets. Specifically,self.asset.index
includes both turbine and tower indices, butfreestream_indices
only includes boolean values corresponding to turbines, so the dimensions didn't match in the return statement.