finalize README.md + example + cython interface
This commit is contained in:
@@ -11,8 +11,8 @@ cdef extern from "imc_raw.hpp" namespace "imc":
|
||||
imc_termite() except +
|
||||
imc_termite(string rawfile) except +
|
||||
# provide raw file
|
||||
void submit_file(string rawfile) except+
|
||||
void set_file(string rawfile) except +
|
||||
# get JSON list of channels
|
||||
vector[string] get_channels() except+
|
||||
vector[string] get_channels(bool json, bool data) except +
|
||||
# print all channels
|
||||
void print_channels(string outputdir) except+
|
||||
void print_channels(string outputdir) except +
|
||||
|
@@ -16,12 +16,14 @@ cdef class imctermite:
|
||||
|
||||
# provide raw file
|
||||
def submit_file(self,string rawfile):
|
||||
self.cpp_tdm.set_file(rawfile)
|
||||
self.cpp_imc.set_file(rawfile)
|
||||
|
||||
# get JSON list of channels
|
||||
def get_channels(self, bool data):
|
||||
return self.cpp_imc.get_channels()
|
||||
chnlst = self.cpp_imc.get_channels(True,data)
|
||||
chnlstjn = [jn.loads(chn.decode()) for chn in chnlst]
|
||||
return chnlstjn
|
||||
|
||||
# print a channels
|
||||
def print_channel(self, string outputdir):
|
||||
self.cpp_tdm.print_channels(outputdir)
|
||||
def print_channels(self, string outputdir):
|
||||
self.cpp_imc.print_channels(outputdir)
|
||||
|
@@ -20,5 +20,5 @@ setup(
|
||||
author_email='mario.fink@record-evolution.de',
|
||||
url='https://github.com/RecordEvolution/IMCtermite.git',
|
||||
name="imc_termite",
|
||||
ext_modules=cythonize(extensions)
|
||||
ext_modules=cythonize(extensions,force=True)
|
||||
)
|
||||
|
Reference in New Issue
Block a user