Skip to content

Commit 49ae299

Browse files
committed
Increase number of decimal places in JSON output
1 parent d8c1452 commit 49ae299

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

Source/Processors/GenericProcessor/GenericProcessor.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,6 @@ int GenericProcessor::getNextChannel (bool increment)
549549
{
550550
int chan = nextAvailableChannel;
551551

552-
//LOGDD("Next channel: ", chan, ", num inputs: ", getNumInputs());
553-
554552
if (increment)
555553
nextAvailableChannel++;
556554

@@ -1779,31 +1777,6 @@ void GenericProcessor::saveToXml (XmlElement* xml)
17791777
for (auto param : stream->getParameters())
17801778
param->toXml (streamParamsXml);
17811779

1782-
/*for (auto eventChannel : stream->getEventChannels())
1783-
{
1784-
if (eventChannel->numParameters() > 0)
1785-
{
1786-
XmlElement* eventParamsXml = streamXml->createNewChildElement("EVENT_CHANNEL");
1787-
eventParamsXml->setAttribute("name",eventChannel->getName());
1788-
eventParamsXml->setAttribute("description", eventChannel->getDescription());
1789-
1790-
for (auto param : eventChannel->getParameters())
1791-
param->toXml(eventParamsXml);
1792-
}
1793-
}
1794-
1795-
for (auto continuousChannel : stream->getContinuousChannels())
1796-
{
1797-
if (continuousChannel->numParameters() > 0)
1798-
{
1799-
XmlElement* continuousParamsXml = streamXml->createNewChildElement("CONTINUOUS_CHANNEL");
1800-
continuousParamsXml->setAttribute("name",continuousChannel->getName());
1801-
continuousParamsXml->setAttribute("description", continuousChannel->getDescription());
1802-
1803-
for (auto param : continuousChannel->getParameters())
1804-
param->toXml(continuousParamsXml);
1805-
}
1806-
}*/
18071780
}
18081781

18091782
saveCustomParametersToXml (xml->createNewChildElement ("CUSTOM_PARAMETERS"));

Source/Processors/RecordNode/BinaryFormat/BinaryRecording.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ void BinaryRecording::openFiles (File rootFolder, int experimentNumber, int reco
329329

330330
FileOutputStream settingsFileStream (File (basepath + "structure.oebin"));
331331

332-
settingsJSON->writeAsJSON (settingsFileStream, JSON::FormatOptions {}.withIndentLevel (2).withSpacing (JSON::Spacing::multiLine).withMaxDecimalPlaces (3));
332+
settingsJSON->writeAsJSON (settingsFileStream, JSON::FormatOptions {}.withIndentLevel (2).withSpacing (JSON::Spacing::multiLine).withMaxDecimalPlaces (10));
333333

334334

335335
}

0 commit comments

Comments
 (0)