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 9d300ab
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 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
2 changes: 1 addition & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ abstract type Windows <: AbstractOS end
abstract type MacOS <: BSD end
abstract type Linux <: BSD end

const DSS_CAPI_TAG = "0.14.1"
const DSS_CAPI_TAG = "0.14.3"

function download(::Type{MacOS})
if Sys.ARCH == :aarch64
Expand Down
2 changes: 1 addition & 1 deletion src/lib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7175,4 +7175,4 @@ function Circuit_FromJSON(ctx::Ptr{Cvoid}, circ, options)
ccall((:ctx_Circuit_FromJSON, LIBRARY), Cvoid, (Ptr{Cvoid}, Cstring, Int32,), ctx, circ, options)
end

const DSS_CAPI_VERSION = "0.14.1"
const DSS_CAPI_VERSION = "0.14.3"
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 9d300ab

Please sign in to comment.