Skip to content

Commit

Permalink
FIX: Typo in _create_storage
Browse files Browse the repository at this point in the history
Fixed bug/typo in `_create_storage` where `kwhstored` was derived from `:stored` instead of `Symbol("%stored")`
  • Loading branch information
pseudocubic committed Mar 31, 2022
1 parent 9966a62 commit 44835aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## staged

- none
- Fixed bug/typo in `_create_storage` where `kwhstored` was derived from `:stored` instead of `Symbol("%stored")`

## v0.14.3

Expand Down
2 changes: 1 addition & 1 deletion src/io/dss/dss_node_structs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ function _create_storage(name::String=""; kwargs...)
"kva" => get(kwargs, :kva, get(kwargs, :kwrated, 50.0)),
"kvar" => get(kwargs, :kvar, sign(get(kwargs, :pf, 1.0)) * get(kwargs, :kw, 0.0) * sqrt(1.0 / get(kwargs, :pf, 1.0)^2 - 1.0)),
"kwhrated" => get(kwargs, :kwhrated, 50.0),
"kwhstored" => get(kwargs, :kwhstored, get(kwargs, :kwhrated, 50.0) * get(kwargs, :stored, 100.0) / 100.0),
"kwhstored" => get(kwargs, :kwhstored, get(kwargs, :kwhrated, 50.0) * get(kwargs, Symbol("%stored"), 100.0) / 100.0),
"kwrated" => get(kwargs, :kwrated, 50.0),
"model" => get(kwargs, :model, 1),
"pf" => get(kwargs, :pf, get(kwargs, :kw, 0.0) == 0 ? 1.0 : get(kwargs, :kvar, kwargs[:kw]) / kwargs[:kw]),
Expand Down

0 comments on commit 44835aa

Please sign in to comment.