Skip to content

Commit

Permalink
fixes #974
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeDaskalakis committed Apr 27, 2021
1 parent 51e2671 commit 59f8d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OSPSuite.Infrastructure.Import/Services/Importer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public MappingProblem CheckWhetherAllDataColumnsAreMapped(IReadOnlyList<ColumnIn
.Where(col => col.IsMandatory && subset.All(cm =>
cm.MappedColumn.Name != col.Name)).Select(col => col.Name)
.ToList(),
MissingUnit = subset.Where(cm => cm.MappedColumn.Unit.SelectedUnit == UnitDescription.InvalidUnit && cm.MappedColumn.ErrorStdDev.Equals("geometric")).Select(cm => cm.MappedColumn.Name)
MissingUnit = subset.Where(cm => cm.MappedColumn.Unit.SelectedUnit == UnitDescription.InvalidUnit && (cm.MappedColumn.ErrorStdDev == null || cm.MappedColumn.ErrorStdDev.Equals(Constants.STD_DEV_ARITHMETIC))).Select(cm => cm.MappedColumn.Name)
.ToList()
};
}
Expand Down

0 comments on commit 59f8d9c

Please sign in to comment.