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 abba826
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

2 comments on commit abba826

@PMeira
Copy link
Member Author

@PMeira PMeira commented on abba826 Mar 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/102837

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.9.8 -m "<description of version>" abba8260bb142e4c43a1e218d38d81cc9ebba885
git push origin v0.9.8

Please sign in to comment.