コード例 #1
0
 def rebase_to_fixed_dt(cls, original_trace, dt):
     print 'dt', dt
     from morphforge.core.quantities.wrappers import NpPqWrappers
     print original_trace
     time = NpPqWrappers.arange(start=original_trace.get_min_time(), stop=original_trace.get_max_time(), step=dt)
     data = original_trace.get_values(time)
     return TraceFixedDT(time, data, name=original_trace.name, comment=original_trace.comment, tags=original_trace.tags)
コード例 #2
0
 def rebase_to_fixed_dt(cls, original_trace, dt):
     print 'dt', dt
     from morphforge.core.quantities.wrappers import NpPqWrappers
     print original_trace
     time = NpPqWrappers.arange(start=original_trace.get_min_time(),
                                stop=original_trace.get_max_time(),
                                step=dt)
     data = original_trace.get_values(time)
     return TraceFixedDT(time,
                         data,
                         name=original_trace.name,
                         comment=original_trace.comment,
                         tags=original_trace.tags)
コード例 #3
0
 def RebaseToFixedDT(cls, original_trace, dt):
     from morphforge.core.quantities.wrappers import NpPqWrappers
     time = NpPqWrappers.arange(start=original_trace.getMinTime(), stop=original_trace.getMaxTime(), step=dt)
     data = original_trace.getValues(time)
     return Trace_FixedDT(time, data, name=original_trace.name, comment=original_trace.comment, tags=original_trace.tags)