Skip to content

Commit

Permalink
Join lists for file output with comma.
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyus committed Jan 15, 2021
1 parent 49d9973 commit 97191d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions read_waveplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def getUnit(self, sensor_index):
elif (Mode=='pipe'):
print header
elif (Mode=='file'):
file.write(header)
file.write(header.join(','))

while True:
for waveplus in waveplus_devices:
Expand Down Expand Up @@ -265,7 +265,7 @@ def getUnit(self, sensor_index):
elif (Mode=='pipe'):
print data
elif (Mode=='file'):
file.write(data)
file.write(data.join(','))

waveplus.disconnect()
break
Expand Down

0 comments on commit 97191d9

Please sign in to comment.