Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUp(self):
self.result_true = TESTDATA['concatenated_residue']
residue = TESTDATA['residue']
self.result = rainflow.concatenate_reversals(residue, residue)
def setUp(self):
self.cycles_true = TESTDATA['cycles']
self.residue_true = TESTDATA['residue']
self.reversals = TESTDATA['reversals']
self.cycles, self.residue = rainflow.find_rainflow_cycles(
self.reversals)
self.result = self.cycles
self.result_true = self.cycles_true
def setUp(self):
self.result_true = TESTDATA['starting_destination_rainflow_matrix']
cycles = TESTDATA['cycles']
bins = TESTDATA['class_boundaries']
self.result = rainflow.find_rainflow_matrix(cycles, bins, bins)
def setUp(self):
self.result_true = TESTDATA['ranges_total']
self.result = rainflow.find_rainflow_ranges(TESTDATA['dataseries'],
k=11)
def setUp(self):
self.N_true = TESTDATA['ranges_count']
self.S_true = TESTDATA['classes']
self.N, self.S = rainflow.find_range_count(
TESTDATA['ranges_total'],
bins=TESTDATA['class_boundaries'])
def setUp(self):
self.result_true = TESTDATA['reversals']
y = TESTDATA['dataseries']
self.result, __ = rainflow.find_reversals(y, k=11)
def setUp(self):
self.result_true = TESTDATA['class_boundaries']
y = TESTDATA['dataseries']
self.result = rainflow.get_load_class_boundaries(y, k=11)
def setUp(self):
self.result_true = TESTDATA['classes']
y = TESTDATA['dataseries']
self.result = rainflow.get_load_classes(y, k=11)