Skip to content

Commit

Permalink
Increment version; use DSS C-API v0.14.3; updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed Mar 13, 2024
1 parent c4150d4 commit c0719ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

For a more complete list of changes, visit the [Git repository and Releases page on GitHub](https://github.com/dss-extensions/OpenDSSDirect.jl).

### OpenDSSDirect v0.9.8 Release Notes

- Update the engine to DSS C-API v0.14.3. There are a few bugfixes, [please check the AltDSS/DSS C-API changelog](https://github.com/dss-extensions/dss_capi/blob/master/docs/changelog.md#version-0143-2024-03-13), notably functions CktElement.Open/Close/IsOpen have been fixed and now also check for valid terminals.


### OpenDSSDirect v0.9.7 Release Notes

- Fix low-level signature for `Lib.Circuit_FromJSON`.
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OpenDSSDirect"
uuid = "a8b11937-1041-50f2-9818-136bb7a8fb06"
authors = ["Tom Short <[email protected]>"]
version = "0.9.7"
version = "0.9.8"

[deps]
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
Expand Down
9 changes: 6 additions & 3 deletions test/cktelement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ Lines.Next()
@test CktElement.NumTerminals() == 2
@test CktElement.NumConductors() == 1
@test CktElement.NumPhases() == 1
@test CktElement.Open(0, 0) === nothing
@test CktElement.Close(0, 0) === nothing
@test CktElement.IsOpen(0, 0) == false
@test_throws OpenDSSDirect.OpenDSSDirectException CktElement.Open(0, 0)
@test_throws OpenDSSDirect.OpenDSSDirectException CktElement.Close(0, 0)
@test_throws OpenDSSDirect.OpenDSSDirectException CktElement.IsOpen(0, 0)
@test CktElement.Open(1, -1) === nothing
@test CktElement.Close(1, -1) === nothing
@test CktElement.IsOpen(1, 0) == false
@test CktElement.NumProperties() == 38
@test CktElement.HasSwitchControl() == false
@test CktElement.HasVoltControl() == false
Expand Down

0 comments on commit c0719ea

Please sign in to comment.