Skip to content

Commit

Permalink
Fix user prob dist for DELs
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Sep 20, 2023
1 parent f6af1df commit 264357b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pCrunch/pCrunch/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def prob_WindDist(self, windspeed, disttype="pdf"):
)

if self.user_dist:
wind_prob = np.interp(self.uu,self.user_dist['speed'],self.user_dist['probability'])
wind_prob = np.interp(windspeed,self.user_dist['speed'],self.user_dist['probability'])

return wind_prob

Expand Down
2 changes: 1 addition & 1 deletion weis/aeroelasticse/openmdao_openfast.py
Original file line number Diff line number Diff line change
Expand Up @@ -2265,7 +2265,7 @@ def post_process(self, summary_stats, extreme_table, DELs, damage, case_list, dl
# If DLC 1.1 not used, calculate_AEP will just compute average power of simulations
outputs, discrete_outputs = self.calculate_AEP(summary_stats, case_list, dlc_generator, inputs, discrete_inputs, outputs, discrete_outputs)

outputs, discrete_outputs = self.get_weighted_DELs(dlc_generator, DELs, damage, discrete_inputs, outputs, discrete_outputs)
outputs, discrete_outputs = self.get_weighted_DELs(dlc_generator, DELs, damage, inputs, discrete_inputs, outputs, discrete_outputs)

outputs, discrete_outputs = self.get_control_measures(summary_stats, chan_time, inputs, discrete_inputs, outputs, discrete_outputs)

Expand Down

0 comments on commit 264357b

Please sign in to comment.