Skip to content

Commit 6024a98

Browse files
author
Vanessa Arndorfer
committed
run clang-format locally
1 parent fc7366a commit 6024a98

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

Simulator/Edges/Neuro/AllSpikingSynapses.cpp

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,17 @@ void AllSpikingSynapses::printParameters() const
107107
<< endl
108108
<< "\tEdges type: AllSpikingSynapses" << endl
109109
<< endl);
110-
LOG4CPLUS_DEBUG(edgeLogger_, "\n\tTau values: [" << " II: " << tau_II_ << "," << " IE: "
111-
<< tau_IE_ << "," << " EI: " << tau_EI_ << ","
112-
<< " EE: " << tau_EE_ << "]" << endl);
110+
LOG4CPLUS_DEBUG(edgeLogger_, "\n\tTau values: ["
111+
<< " II: " << tau_II_ << ","
112+
<< " IE: " << tau_IE_ << ","
113+
<< " EI: " << tau_EI_ << ","
114+
<< " EE: " << tau_EE_ << "]" << endl);
113115

114116
LOG4CPLUS_DEBUG(edgeLogger_, "\n\tDelay values: ["
115-
<< " II: " << delay_II_ << "," << " IE: " << delay_IE_ << ","
116-
<< " EI:" << delay_EI_ << "," << " EE: " << delay_EE_ << "]"
117-
<< endl);
117+
<< " II: " << delay_II_ << ","
118+
<< " IE: " << delay_IE_ << ","
119+
<< " EI:" << delay_EI_ << ","
120+
<< " EE: " << delay_EE_ << "]" << endl);
118121
}
119122

120123
/// Sets the data for Synapse to input's data.
@@ -340,8 +343,7 @@ string vectorToXML(const vector<BGFLOAT> &matrix, int rows, int cols, const stri
340343
os << "<" << name << " rows=\"" << rows << "\" columns=\"" << cols << "\">\n";
341344

342345
int index = 0;
343-
for_each(matrix.begin(), matrix.end(), [&](BGFLOAT value) mutable
344-
{
346+
for_each(matrix.begin(), matrix.end(), [&](BGFLOAT value) mutable {
345347
os << " <value" << index << ">" << value << "</value" << index << ">\n";
346348
index++;
347349
});
@@ -356,10 +358,10 @@ string vectorToXML(const vector<int> &matrix, int rows, int cols, const string &
356358
os << "<" << name << " rows=\"" << rows << "\" columns=\"" << cols << "\">\n";
357359

358360
int index = 0;
359-
for_each(matrix.begin(), matrix.end(), [&](int value) mutable
360-
{
361-
os << " <value" << index << ">" << value << "</value" << index << ">\n";
362-
index++;
361+
for_each(matrix.begin(), matrix.end(), [&](int value) mutable {
362+
os << " <value" << index << ">" << value << "</value" << index << ">\n";
363+
364+
index++;
363365
});
364366

365367
os << "</" << name << ">\n";
@@ -368,7 +370,8 @@ string vectorToXML(const vector<int> &matrix, int rows, int cols, const string &
368370

369371
void AllSpikingSynapses::outputWeights(int epochNum)
370372
{
371-
const std::string filename = "./Output/Results/weights-epoch-" + std::to_string(epochNum) + ".xml"; // Hardcoded filename
373+
const std::string filename = "./Output/Results/weights-epoch-" + std::to_string(epochNum)
374+
+ ".xml"; // Hardcoded filename
372375
int vertexCount = Simulator::getInstance().getTotalVertices();
373376

374377
ofstream outFile(filename);

0 commit comments

Comments
 (0)