Skip to content
This repository
Browse code

Added header size info to header

  • Loading branch information...
commit 7eefc27e98dd4df9178ffee235e5fc1984ddb6ed 1 parent 07cd577
Josh Siegle jsiegle authored

Showing 1 changed file with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. +6 2 Source/Processors/RecordNode.cpp
8 Source/Processors/RecordNode.cpp
@@ -370,6 +370,10 @@ String RecordNode::generateHeader(Channel* ch)
370 370
371 371 String header = "header.format = 'OPEN EPHYS DATA FORMAT v0.0'; \n";
372 372
  373 + header += "header.header_bytes = ";
  374 + header += String(HEADER_SIZE);
  375 + header += ";"
  376 +
373 377 if (ch->isEventChannel)
374 378 {
375 379 header += "header.description = 'each record contains one 64-bit timestamp, one 16-bit sample position, one uint8 event type, one uint8 processor ID, one uint8 event ID, and one uint8 event channel'; \n";
@@ -396,9 +400,9 @@ String RecordNode::generateHeader(Channel* ch)
396 400
397 401 header += "header.channelType = 'Continuous';\n";
398 402
399   - header += "header.sampleRate = '";
  403 + header += "header.sampleRate = ";
400 404 header += String(ch->sampleRate);
401   - header += "';\n";
  405 + header += ";\n";
402 406 }
403 407
404 408 header += "header.bitVolts = ";

0 comments on commit 7eefc27

Please sign in to comment.
Something went wrong with that request. Please try again.