* github workflow: add checkout step and use makefile target for file
setup * add README.rst to gitignore * makefile: validate wheels, run python example, add README.rst option * usage.py: fix output directory and simplify for loop * setup.py: remove unused os module * setup.cfg: syntax fix
This commit is contained in:
@@ -21,18 +21,18 @@ if len(channelsdata) > 0 :
|
||||
|
||||
print(len(chnydata))
|
||||
print(len(chnxdata))
|
||||
print()
|
||||
|
||||
# print the channels into a specific directory
|
||||
imcraw.print_channels(b"./data",ord(','))
|
||||
imcraw.print_channels(b"/tmp/",ord(','))
|
||||
|
||||
# print all channels separately
|
||||
idx = 0
|
||||
for chn in channels :
|
||||
print(str(idx)+" : "+chn['name']+" : "+chn['uuid'])
|
||||
filname = os.path.join("./data",str(idx) + "_" + chn['name']+".csv")
|
||||
for i,chn in enumerate(channels) :
|
||||
print(str(i)+" : "+chn['name']+" : "+chn['uuid'])
|
||||
filname = os.path.join("/tmp/",str(i) + "_" + chn['name']+".csv")
|
||||
print(filname)
|
||||
imcraw.print_channel(chn['uuid'].encode(),filname.encode(),ord(','))
|
||||
idx = idx + 1
|
||||
|
||||
# print all channels in single file
|
||||
# imcraw.print_table(b"./data/allchannels.csv")
|
||||
imcraw.print_table(b"/tmp/allchannels.csv")
|
||||
|
||||
|
Reference in New Issue
Block a user