Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
t-ober committed Jan 20, 2022
1 parent 6d4b7f9 commit 68cc7ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void setEdgeWeightQuantity(
* ComparableQuantity)} instead, as it provides means for proper unit handling
*/
@Override
@Deprecated(since=("Deprecated since 2.1.0. See Javadocs for more information."))
@Deprecated(since = ("Deprecated since 2.1.0. See Javadocs for more information."))
public void setEdgeWeight(ImpedanceWeightedEdge edge, double impedanceInOhm) {
super.setEdgeWeight(edge, impedanceInOhm);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/ie3/datamodel/utils/ContainerUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ private static void addImpedanceGraphEdge(
}
if (connectorInput instanceof SwitchInput sw && sw.isClosed()) {
// assumption: closed switch has a resistance of 1 OHM
graph.setEdgeWeightQuantity(graph.getEdge(nodeA, nodeB), Quantities.getQuantity(1d, OHM));
graph.setEdgeWeightQuantity(graph.getEdge(nodeA, nodeB), Quantities.getQuantity(1d, OHM));
}
if (connectorInput instanceof Transformer2WInput trafo2w) {
graph.setEdgeWeightQuantity(
Expand Down

0 comments on commit 68cc7ab

Please sign in to comment.