Skip to content

Commit

Permalink
iss #309 fixed bug when subplotting with multiple directions
Browse files Browse the repository at this point in the history
  • Loading branch information
rach185 committed May 20, 2022
1 parent 59a28df commit ec03618
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion brightwind/analyse/analyse.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from brightwind.utils import utils
from brightwind.analyse import plot as plt
from brightwind.utils.utils import _convert_df_to_series
import matplotlib

__all__ = ['monthly_means',
'momm',
Expand Down Expand Up @@ -1228,6 +1227,10 @@ def sector_ratio(wspd_1, wspd_2, wdir, sectors=72, min_wspd=3, direction_bin_arr
sec_rats_dists = {}
col_names = {}

wdir_dict = {}
for key, data in enumerate(wd):
wdir_dict[key] = wd[data]

for sensor_pair in keys:
wspd_1 = _convert_df_to_series(ws_1.iloc[:, sensor_pair]).dropna()
wspd_2 = _convert_df_to_series(ws_2.iloc[:, sensor_pair]).dropna()
Expand Down

0 comments on commit ec03618

Please sign in to comment.