From 7c266549788939b84753faf68aa79f2b1a1d587e Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 23 Mar 2022 10:15:33 +0100 Subject: [PATCH] use unsafe id --- .../edu/ie3/powerFactory2psdm/converter/NodeConverter.scala | 2 +- .../edu/ie3/powerFactory2psdm/common/ConverterTestData.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/edu/ie3/powerFactory2psdm/converter/NodeConverter.scala b/src/main/scala/edu/ie3/powerFactory2psdm/converter/NodeConverter.scala index f2d4cc40..d3ceeb9d 100644 --- a/src/main/scala/edu/ie3/powerFactory2psdm/converter/NodeConverter.scala +++ b/src/main/scala/edu/ie3/powerFactory2psdm/converter/NodeConverter.scala @@ -92,7 +92,7 @@ object NodeConverter { val uuid = unsafeNodeId2Uuid.getOrElse(node.unsafeId, UUID.randomUUID()) new NodeInput( uuid, - node.id, + node.unsafeId, OperatorInput.NO_OPERATOR_ASSIGNED, OperationTime.notLimited(), node.vTarget.asPu, diff --git a/src/test/scala/edu/ie3/powerFactory2psdm/common/ConverterTestData.scala b/src/test/scala/edu/ie3/powerFactory2psdm/common/ConverterTestData.scala index 8a7f7e3e..5513f00a 100644 --- a/src/test/scala/edu/ie3/powerFactory2psdm/common/ConverterTestData.scala +++ b/src/test/scala/edu/ie3/powerFactory2psdm/common/ConverterTestData.scala @@ -211,7 +211,7 @@ object ConverterTestData extends LazyLogging { val nodes = Map( "someNode" -> ConversionPair( Node( - "someNode", + "node", "someNode", 0.4, 1.0,