def test_ts(regtest_redirect): t = emzed.utils.toTable("id", [1, 1, 2]) # peakmap unique id already tested by compression of peakmap: x = [None, 1, 2, 3, 4, None, None, 4, None] y = [None, 11, 12, 14, 13, None, None, 100, None] ts = TimeSeries(x, y) t.addColumn("ts", ts, format_="%s") with regtest_redirect(): for xi, yi in ts.for_plotting(): print(xi, yi) print(TimeSeries([], [])) print(t) print(t.ts[0].uniqueId()) print(t.uniqueId())
def test_ts(regtest_redirect): t = emzed.utils.toTable("id", [1, 1, 2]) # peakmap unique id already tested by compression of peakmap: x = [None, 1, 2, 3, 4, None, None, 4, None] y = [None, 11, 12, 14, 13, None, None, 100, None] ts = TimeSeries(x, y) t.addColumn("ts", ts, format_="%s") with regtest_redirect(): for xi, yi in ts.for_plotting(): print(xi, yi) print(TimeSeries([], [])) print(t) print(t.ts[0].uniqueId()) print(t.uniqueId())
def test_ts(regtest_redirect): t = emzed.utils.toTable("id", [1, 1, 2]) x = [None, 1, 2, 3, 4, None, None, 4, None] x = [None if xi is None else datetime.fromordinal(xi) for xi in x] y = [None, 11, 12, 14, 13, None, None, 100, None] ts = TimeSeries(x, y) t.addColumn("ts", ts, format_="%s") with regtest_redirect(): for xi, yi in ts.for_plotting(): print(xi, yi) print(TimeSeries([], [])) print(t) print(t.ts[0].uniqueId()) print(t.uniqueId())
def test_ts(regtest_redirect): t = emzed.utils.toTable("id", [1, 1, 2]) x = [None, 1, 2, 3, 4, None, None, 4, None] x = [None if xi is None else datetime.fromordinal(xi) for xi in x] y = [None, 11, 12, 14, 13, None, None, 100, None] ts = TimeSeries(x, y) t.addColumn("ts", ts, format_="%s") with regtest_redirect(): for xi, yi in ts.for_plotting(): print(xi, yi) print(TimeSeries([], [])) print(t) print(t.ts[0].uniqueId()) print(t.uniqueId())