Skip to content

Commit cd87af7

Browse files
author
Divya Kamath
committed
Fixed few code style violation
1 parent 292ca1d commit cd87af7

File tree

3 files changed

+19
-36
lines changed

3 files changed

+19
-36
lines changed

Simulator/Edges/Neuro/AllSTDPSynapses.cpp

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -118,32 +118,18 @@ void AllSTDPSynapses::printParameters() const
118118
{
119119
AllSpikingSynapses::printParameters();
120120

121-
LOG4CPLUS_DEBUG(edgeLogger_, "\n\t---AllSTDPSynapses Parameters---"
122-
<< endl
123-
<< "\tEdges type: AllSTDPSynapses" << endl
124-
<< endl
125-
<< "\tSTDP gap" << defaultSTDPgap_ << endl
126-
<< "\n\tTauspost value: ["
127-
<< " I: " << tauspost_I_ << ", "
128-
<< " E: " << tauspost_E_ << "]" << endl
129-
<< "\n\tTauspre value: ["
130-
<< " I: " << tauspre_I_ << ", "
131-
<< " E: " << tauspre_E_ << "]" << endl
132-
<< "\n\tTaupos value: ["
133-
<< " I: " << taupos_I_ << ", "
134-
<< " E: " << taupos_E_ << "]" << endl
135-
<< "\n\tTau negvalue: ["
136-
<< " I: " << tauneg_I_ << ", "
137-
<< " E: " << tauneg_E_ << "]" << endl
138-
<< "\n\tWex value: ["
139-
<< " I: " << Wex_I_ << ", "
140-
<< " E: " << Wex_E_ << "]" << endl
141-
<< "\n\tAneg value: ["
142-
<< " I: " << Aneg_I_ << ", "
143-
<< " E: " << Aneg_E_ << "]" << endl
144-
<< "\n\tApos value: ["
145-
<< " I: " << Apos_I_ << ", "
146-
<< " E: " << Apos_E_ << "]" << endl);
121+
LOG4CPLUS_DEBUG(
122+
edgeLogger_,
123+
"\n\t---AllSTDPSynapses Parameters---"
124+
<< "\n\tEdges type: AllSTDPSynapses \n\n"
125+
<< "\tSTDP gap" << defaultSTDPgap_ << "\n\n\tTauspost value: [" << " I: " << tauspost_I_
126+
<< ", " << " E: " << tauspost_E_ << "]" << "\n\n\tTauspre value: [" << " I: " << tauspre_I_
127+
<< ", " << " E: " << tauspre_E_ << "]" << "\n\n\tTaupos value: [" << " I: " << taupos_I_
128+
<< ", " << " E: " << taupos_E_ << "]" << "\n\n\tTau negvalue: [" << " I: " << tauneg_I_
129+
<< ", " << " E: " << tauneg_E_ << "]" << "\n\n\tWex value: [" << " I: " << Wex_I_ << ", "
130+
<< " E: " << Wex_E_ << "]" << "\n\n\tAneg value: [" << " I: " << Aneg_I_ << ", "
131+
<< " E: " << Aneg_E_ << "]" << "\n\n\tApos value: [" << " I: " << Apos_I_ << ", "
132+
<< " E: " << Apos_E_ << "]" << endl);
147133
}
148134

149135
/// Sets the data for Synapse to input's data.

Simulator/Edges/Neuro/AllSpikingSynapses.cpp

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

115-
LOG4CPLUS_DEBUG(edgeLogger_, "\n\tDelay values: [" << " II: " << delay_II_ << ","
116-
<< " IE: " << delay_IE_ << ","
117-
<< " EI:" << delay_EI_ << ","
118-
<< " EE: " << delay_EE_ << "]" << endl);
114+
LOG4CPLUS_DEBUG(edgeLogger_, "\n\tDelay values: ["
115+
<< " II: " << delay_II_ << "," << " IE: " << delay_IE_ << ","
116+
<< " EI:" << delay_EI_ << "," << " EE: " << delay_EE_ << "]"
117+
<< endl);
119118
}
120119

121120
/// Sets the data for Synapse to input's data.

Testing/UnitTesting/XmlRecorderTests.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,7 @@ TEST(XmlRecorderTest, ToXML)
175175
// Verify the expected XML output
176176
stringstream os;
177177
os << "<Matrix ";
178-
os << "name=\""
179-
<< "TestVar"
180-
<< "\" ";
178+
os << "name=\"" << "TestVar" << "\" ";
181179
os << "type=\"complete\" rows=\"" << 1 << "\" columns=\"" << variableHistory.size()
182180
<< "\" multiplier=\"1.0\">" << endl;
183181
os << " ";

0 commit comments

Comments
 (0)