- cython: raw_meat: add/adjust getter method
- implement full app example in pyt/example.py - merges time series of all consistent channels - extract them into pyarrow table - save pyarrow table as compressed parquet file
This commit is contained in:
@@ -22,6 +22,14 @@ cdef extern from "../lib/rawmerge.hpp":
|
||||
vector[double] get_time()
|
||||
vector[double] get_data()
|
||||
# dump all data to .csv
|
||||
void write_table(const char*,char delimiter)
|
||||
void write_table(const char*,char)
|
||||
# add channel and try to merge it
|
||||
bool add_channel(string)
|
||||
# get total number of (added) channels
|
||||
int get_num_channels()
|
||||
# get list of channel names
|
||||
vector[string] get_channel_names()
|
||||
# get data of particular channel
|
||||
vector[double] get_channel(int)
|
||||
# get total merged time series
|
||||
vector[double] get_time_series()
|
||||
|
@@ -41,3 +41,15 @@ cdef class rawmerger:
|
||||
|
||||
def add_channel(self, string rawfile):
|
||||
return self.rawit.add_channel(rawfile)
|
||||
|
||||
def get_num_channels(self):
|
||||
return self.rawit.get_num_channels()
|
||||
|
||||
def get_channel_names(self):
|
||||
return self.rawit.get_channel_names()
|
||||
|
||||
def get_channel_by_index(self, int chidx):
|
||||
return self.rawit.get_channel(chidx)
|
||||
|
||||
def get_time_series(self):
|
||||
return self.rawit.get_time_series()
|
||||
|
Reference in New Issue
Block a user