Skip to content

Commit

Permalink
Fix Tests on M1 (lanl-ansi#839)
Browse files Browse the repository at this point in the history
* add atol to det tests
* update changelog
  • Loading branch information
ccoffrin authored Aug 21, 2022
1 parent 09bf3de commit cbce397
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ PowerModels.jl Change Log
=========================

### Staged
- Improve linear algebra test robustness (#827)
- Fix `make_multinetwork` and add test (#823)
- Fix SDP solution reporting consistency (#833)

Expand Down
4 changes: 2 additions & 2 deletions test/am.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ end

@test isa(sm, AdmittanceMatrix{Float64})
@test SparseArrays.nnz(sm.matrix) == 17
@test isapprox(LinearAlgebra.det(sm.matrix), 0.0)
@test isapprox(LinearAlgebra.det(sm.matrix), 0.0, atol=1e-6)
end
@testset "5-bus ext case" begin
data = PowerModels.parse_file("../test/data/matpower/case5_ext.m")
sm = calc_susceptance_matrix(data)

@test isa(sm, AdmittanceMatrix{Float64})
@test SparseArrays.nnz(sm.matrix) == 17
@test isapprox(LinearAlgebra.det(sm.matrix), 0.0)
@test isapprox(LinearAlgebra.det(sm.matrix), 0.0, atol=1e-6)
end
@testset "14-bus pti case" begin
data = PowerModels.parse_file("../test/data/pti/case14.raw")
Expand Down

0 comments on commit cbce397

Please sign in to comment.