Skip to content

Commit

Permalink
Add the ability to save all device parameter changes to notes.csv dur…
Browse files Browse the repository at this point in the history
…ing recording
  • Loading branch information
daharoni committed Jul 2, 2021
1 parent f1ea4ba commit 4999be0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/datasaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ void DataSaver::startRecording(QMap<QString,QVariant> ucInfo)
noteFile = new QFile(baseDirectory + "/notes.csv");
noteFile->open(QFile::WriteOnly | QFile::Truncate);
noteStream = new QTextStream(noteFile);
*noteStream << "Time Stamp (ms), Note" << endl;

// TODO: Save camera calibration file to data directory for each behavioral camera
m_recording = true;
Expand Down Expand Up @@ -382,7 +383,10 @@ void DataSaver::devicePropertyChanged(QString deviceName, QString propName, QVar
{
deviceProperties[deviceName][propName] = propValue;
qDebug() << deviceName << propName << propValue;
// TODO: signal change to filing keeping track of changes during recording

QString s = deviceName + "," + propName + "," + propValue.toString();
// TODO: Make sure this writes changes in parameters correctly to the notes file
takeNote(s); // Sends this information to be written to the notes csv file
}

void DataSaver::takeScreenShot(QString type)
Expand Down

0 comments on commit 4999be0

Please sign in to comment.