Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 44c35f76 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

bugfix reading internal resistance curve with 5 columns

parent fd48da7e
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ namespace TUGraz.VectoCore.InputData.Reader.ComponentData
{
public static InternalResistanceMap Create(DataTable data, bool inmOhm)
{
if (!(data.Columns.Count == 2 || data.Columns.Count == 4 || data.Columns.Count != 5)) {
if (!(data.Columns.Count == 2 || data.Columns.Count == 4 || data.Columns.Count == 5)) {
throw new VectoException(
"Internal Resistance Map data must contain either two, four or five columns: {0}, {1}",
Fields.StateOfCharge, Fields.InternalResistance);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment