def test_nmar_destroyer(self): turbine = NREL().get_turbine(NREL.park_id['tehachapi'], 2004) timeseries = turbine.get_measurements()[:1000] damaged, indices = NMARDestroyer().destroy(timeseries, percentage=.50,\ min_length=10, max_length=50) misses = MissingDataFinder().find(damaged, 600) assert(len(misses) > 0)
def test_marthres_destroyer(self): turbine = NREL().get_turbine(NREL.park_id['tehachapi'], 2004) timeseries = turbine.get_measurements()[:1000] damaged, indices = MARThresDestroyer().destroy(timeseries, percentage=.50,\ lower_bound = 0, upper_bound = 20) misses = MissingDataFinder().find(damaged, 600) assert(len(misses) > 0)