Skip to content

Commit

Permalink
Merge pull request #8 from noahrhodes/update_23.07
Browse files Browse the repository at this point in the history
Update pglib artifact to 23.07
  • Loading branch information
noahrhodes authored Apr 1, 2024
2 parents 1d62d68 + 41c39ed commit 8f0a344
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Files generated by invoking Julia with --code-coverage
*.jl.cov
*.jl.*.cov
.vscode/*

# Files generated by invoking Julia with --track-allocation
*.jl.mem
Expand Down
6 changes: 3 additions & 3 deletions Artifacts.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[PGLib_opf]
git-tree-sha1 = "91f3110e356432d4e093502e8fa60d6dc97104d2"
git-tree-sha1 = "0e8968a89b6ad43910a8eda4ec30656add35cf91"

[[PGLib_opf.download]]
sha256 = "9c53214a8b74d921a662235faeea234e3e2bfa7cf62619410e9ec52f4277c797"
url = "https://github.com/power-grid-lib/pglib-opf/archive/refs/tags/v21.07.tar.gz"
sha256 = "f1421ce22f0a7b9de8a8b2111776b496348220192ad24aace392c3bf608706c2"
url = "https://github.com/power-grid-lib/pglib-opf/archive/refs/tags/v23.07.tar.gz"
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PGLib"
uuid = "07a8691f-3d11-4330-951b-3c50f98338be"
authors = ["Noah Rhodes <[email protected]>"]
version = "0.1.1"
version = "0.2.0"

[deps]
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
Expand Down
6 changes: 3 additions & 3 deletions src/PGLib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ using Artifacts
# include("data.jl")


const PGLib_opf = joinpath(artifact"PGLib_opf","pglib-opf-21.07")
const PGLib_opf_api = joinpath(artifact"PGLib_opf","pglib-opf-21.07","api")
const PGLib_opf_sad = joinpath(artifact"PGLib_opf","pglib-opf-21.07","sad")
const PGLib_opf = joinpath(artifact"PGLib_opf","pglib-opf-23.07")
const PGLib_opf_api = joinpath(artifact"PGLib_opf","pglib-opf-23.07","api")
const PGLib_opf_sad = joinpath(artifact"PGLib_opf","pglib-opf-23.07","sad")

function pglib(fname::AbstractString, variant::AbstractString)
if variant=="api"
Expand Down
2 changes: 1 addition & 1 deletion src/create_artifacts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ using Artifacts, ArtifactUtils
add_artifact!(
"Artifacts.toml",
"PGLib_opf",
"https://github.com/power-grid-lib/pglib-opf/archive/refs/tags/v21.07.tar.gz",
"https://github.com/power-grid-lib/pglib-opf/archive/refs/tags/v23.07.tar.gz",
force=true,
)
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ case_sad = parse_file(joinpath("./pglib_opf_case3_lmbd.m"))
@test ["pglib_opf_case3_lmbd.m"] == find_pglib_case("lmbd")
@test ["pglib_opf_case3_lmbd__api.m"] == find_pglib_case("lmbd","api")
@test ["pglib_opf_case3_lmbd__sad.m"] == find_pglib_case("lmbd","sad")
@test length(find_pglib_case()) == 59
@test length(find_pglib_case("","sad")) == 59
@test length(find_pglib_case("","api")) == 59
@test length(find_pglib_case()) == 66
@test length(find_pglib_case("","sad")) == 66
@test length(find_pglib_case("","api")) == 66
end
end

0 comments on commit 8f0a344

Please sign in to comment.