Unit test class for Timeserie class routines. More...
Public Member Functions | |
def | test_get_nearest_data_first_far |
Get the nearest data if input < ts[0] - h_accuracy. More... | |
def | test_get_nearest_data_first_near |
Get the nearest data if ts[0] - h_accuracy < input < ts[0]. More... | |
def | test_get_nearest_data_last_far |
Get the nearest data if input > ts[0] + h_accuracy. More... | |
def | test_get_nearest_data_last_near |
Get the nearest data if ts[0] < input < ts[0] + h_accuracy. More... | |
def | test_get_nearest_data_middle_inf |
Get the nearest data if ts[2] < input << ts[3]. More... | |
def | test_get_nearest_data_middle_sup |
Get the nearest data if ts[2] << input < ts[3]. More... | |
def | test_get_nearest_data_first_equal |
Get the nearest data if input = ts[0]. More... | |
def | test_get_nearest_data_last_equal |
Get the nearest data if input = ts[-1]. More... | |
def | test_get_nearest_data_equal |
Get the nearest data if input = ts[10]. More... | |
def | test_concatenate |
Concatenate 2 timeseries of 1 day long each, 1h intervalle. More... | |
def | test_sort |
Sort a timeserie by time field. More... | |
Unit test class for Timeserie class routines.
def tests.unittest_timeserie.UnitTestTimeserie.test_concatenate | ( | self | ) |
Concatenate 2 timeseries of 1 day long each, 1h intervalle.
Data is number of hours spent since the beginning.
def tests.unittest_timeserie.UnitTestTimeserie.test_get_nearest_data_equal | ( | self | ) |
Get the nearest data if input = ts[10].
def tests.unittest_timeserie.UnitTestTimeserie.test_get_nearest_data_first_equal | ( | self | ) |
Get the nearest data if input = ts[0].
def tests.unittest_timeserie.UnitTestTimeserie.test_get_nearest_data_first_far | ( | self | ) |
Get the nearest data if input < ts[0] - h_accuracy.
def tests.unittest_timeserie.UnitTestTimeserie.test_get_nearest_data_first_near | ( | self | ) |
Get the nearest data if ts[0] - h_accuracy < input < ts[0].
def tests.unittest_timeserie.UnitTestTimeserie.test_get_nearest_data_last_equal | ( | self | ) |
Get the nearest data if input = ts[-1].
def tests.unittest_timeserie.UnitTestTimeserie.test_get_nearest_data_last_far | ( | self | ) |
Get the nearest data if input > ts[0] + h_accuracy.
def tests.unittest_timeserie.UnitTestTimeserie.test_get_nearest_data_last_near | ( | self | ) |
Get the nearest data if ts[0] < input < ts[0] + h_accuracy.
def tests.unittest_timeserie.UnitTestTimeserie.test_get_nearest_data_middle_inf | ( | self | ) |
Get the nearest data if ts[2] < input << ts[3].
def tests.unittest_timeserie.UnitTestTimeserie.test_get_nearest_data_middle_sup | ( | self | ) |
Get the nearest data if ts[2] << input < ts[3].
def tests.unittest_timeserie.UnitTestTimeserie.test_sort | ( | self | ) |
Sort a timeserie by time field.