Closed misi9170 closed 1 year ago
Base: 33.73% // Head: 33.70% // Decreases project coverage by -0.02%
:warning:
Coverage data is based on head (
a1a48fc
) compared to base (f5fdff6
). Patch coverage: 0.00% of modified lines in pull request are covered.:exclamation: Current head a1a48fc differs from pull request most recent head 586d12c. Consider uploading reports for the commit 586d12c to get more accurate results
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
hi Misha, I think this is a great idea! Couple of quick comments:
@paulf81 My mistake on the base branch! And yes, thought I was all up to speed with develop but apparently not---that's now pulled and merged. I've also reverted one unnecessary step adding an input to the inner put_label
function.
ok that looks good! my last thought is we could probably use a new example, that just shows how to do each of the plot layout types, I'm happy to propose something?
Sure, sounds good, please do!
Ok I've just pushed up an example of making different types of layout plots, does this work/look ok to you @misi9170 ?
The example looks good. I've just added one more option in the final plot to demonstrate the selection of a subset of turbines to plot waking information for. Ready to merge?
Yes!
Ready to be merged.
In current version, the only way to handle plotting the layout or waking directions of a subset of the farm (using
plot_layout_with_waking_directions()
is to pass a FlorisInterface with a layout for that subset. This modification allows users to specify a subset of turbine indices which they would like to see waking directions for, utilizing an existing mechanism already available inplot_layout_only()
. Also allowing user to define the font size for labeling the wind directions/distances.To specify a subset of turbines of interest, the
layout_plotting_dict
argument provided toplot_layout_with_waking_directions()
should contain a key"turbine_indices"
that is a list of the turbine indices to be plotted. Font size for labels is set with new argumentwake_label_size
.Default behavior unchanged.
Test: no change to the wake directions plot produced by examples/wake_steering_design/00_analyze_single_ws_vs_range.py