Closed misi9170 closed 5 months ago
Two of the examples (that I'm aware of) use find_stuck_sensor_faults()
, called within ws_pow_filtering.py's filter_by_sensor_stuck_faults()
:
find_stuck_sensor_faults()
is being called separately for each turbine in a for
loop; however, the turbine's wd
and ws
columns are checked simultaneously, in that order, so the bug meant that only the stuck ws
indices were being returned. After the bugfix, there is a slight change (increase) to the data removed by the stuck sensor filter for examples_artificial_data/01_raw_data_processing/00_filter_ws_power_curves.ipynb; and there is no (or minimal) change to the data removed by the stuck sensor filter in examples_smarteole/03_filter_ws_power_curves.ipynb (presumably, there were few/no instances of stuck wd
readings).
Out of caution, I have rerun any subsequent notebooks after these examples so that they are consistent with any changes to the data made.Thanks @paulf81 . I realized I hadn't pushed the changes to the examples (not to the running code, just to the notebook output), so I'll do that now and then merge.
Addresses issue raised in #175.
The stuck sensor indices were only being returned for the last column checked, as opposed to a union of the indices over all columns. This PR addresses that issue.
To do
False
, which whenTrue
will instead return a dictionary containing a numpy array of stuck sensor indices for each column passed.@DanielKerrigan 's script below now produces the expected results