예제 #1
0
 def _make_xts_from_shyft_ts(name, shyft_ts):
     ''' Returns a ITimeSeries from shyft_ts '''
     ta = convert_ta(shyft_ts.time_axis)
     mi = MetaInfo()
     mi.Identity = TsIdentity(0, name)
     xts = NetTimeSeries(mi, ta, Convert.create_net_array(shyft_ts.values.to_numpy()))
     return xts
예제 #2
0
 def _make_xts_from_shyft_ts(name, shyft_ts):
     ''' Returns a ITimeSeries from shyft_ts '''
     ta = convert_ta(shyft_ts.time_axis)
     mi = MetaInfo()
     mi.Identity = TsIdentity(0, name)
     xts = NetTimeSeries(mi, ta, Convert.create_net_array(shyft_ts.values.to_numpy()))
     return xts
예제 #3
0
def create_point_ta(shyft_ta):
    t_1970 = 621355968000000000
    ticks_per_sec = 10000000
    t_np = shyft_ta.t.to_numpy() * ticks_per_sec + t_1970
    return TimeAxisOfPoints(Convert.create_net_array(t_np))
예제 #4
0
def create_point_ta(shyft_ta):
    t_1970 = 621355968000000000
    ticks_per_sec = 10000000
    t_np = shyft_ta.t.to_numpy() * ticks_per_sec + t_1970
    return TimeAxisOfPoints(Convert.create_net_array(t_np))