From cb7d09f7b5548b7e4115b4d396e31207d137cb8d Mon Sep 17 00:00:00 2001 From: t-ober <63147366+t-ober@users.noreply.github.com> Date: Wed, 25 Aug 2021 10:21:22 +0200 Subject: [PATCH 1/2] convert line length to Standardunits.LINE_LENGTH --- .../edu/ie3/datamodel/models/input/connector/LineInput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/edu/ie3/datamodel/models/input/connector/LineInput.java b/src/main/java/edu/ie3/datamodel/models/input/connector/LineInput.java index a4b231e9e..6c794d2fc 100644 --- a/src/main/java/edu/ie3/datamodel/models/input/connector/LineInput.java +++ b/src/main/java/edu/ie3/datamodel/models/input/connector/LineInput.java @@ -95,7 +95,7 @@ public LineInput( OlmCharacteristicInput olmCharacteristic) { super(uuid, id, nodeA, nodeB, parallelDevices); this.type = type; - this.length = length; + this.length = length.to(StandardUnits.LINE_LENGTH); this.geoPosition = GeoUtils.buildSafeLineString(geoPosition); this.olmCharacteristic = olmCharacteristic; } From f922492516797c2d68d46238af188df061e08f1c Mon Sep 17 00:00:00 2001 From: t-ober <63147366+t-ober@users.noreply.github.com> Date: Wed, 25 Aug 2021 14:18:21 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09f46d145..ca6a8e115 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased/Snapshot] +### Fixed +- adapted `LineInput` constructor to convert line length to `StandardUnits.LINE_LENGTH` + ## [2.0.1] - 2021-07-08 ### Fixed