Skip to content

Commit 0c971c8

Browse files
committed
Removed Timestamp from csv file.
1 parent 6565f35 commit 0c971c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

chords.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ def read_arduino_data(ser, csv_writer=None, inverted=False):
166166
channel_data.append(float(value)) # Convert to float and add to channel data
167167

168168
if csv_writer: # If CSV logging is enabled, write the data to the CSV file
169-
current_timestamp = datetime.now().strftime('%f') # Get the timestamp only in microseconds
170-
csv_writer.writerow([current_timestamp, counter] + channel_data)
169+
csv_writer.writerow([counter] + channel_data)
171170
if lsl_outlet: # If LSL streaming is enabled, send the data to the LSL stream
172171
lsl_outlet.push_sample(channel_data)
173172

@@ -233,7 +232,7 @@ def parse_data(ser, lsl_flag=False, csv_flag=False, verbose=False, run_time=None
233232
csv_writer.writerow([f"Arduino Board: {board}"])
234233
csv_writer.writerow([f"Sampling Rate (samples per second): {supported_boards[board]}"])
235234
csv_writer.writerow([]) # Blank row for separation
236-
csv_writer.writerow(['Timestamp', 'Counter', 'Channel1', 'Channel2', 'Channel3', 'Channel4', 'Channel5', 'Channel6']) # Write header
235+
csv_writer.writerow(['Counter', 'Channel1', 'Channel2', 'Channel3', 'Channel4', 'Channel5', 'Channel6']) # Write header
237236

238237
end_time = time.time() + run_time if run_time else None
239238
send_command(ser, 'START')

0 commit comments

Comments
 (0)