Skip to content

Commit

Permalink
Update module file name
Browse files Browse the repository at this point in the history
  • Loading branch information
lrennels committed Feb 22, 2019
1 parent c4ae57d commit 6cfcea6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
local/
local/
.DS_Store
2 changes: 1 addition & 1 deletion src/SALib.jl → src/GlobalSensitivityAnalysis.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module SALib
module GlobalSensitivityAnalysis

using DataStructures
using Distributions
Expand Down
4 changes: 2 additions & 2 deletions test/test_sobolsequence.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ data = SobolData(
N = data.N
D = length(data.params)

SALib_sobolseq = sobol_sequence(N, D) |> DataFrame # this package sobol seq function (SALib.py derived)
GSA_sobolseq = sobol_sequence(N, D) |> DataFrame # this package sobol seq function (SALib.py derived)

s = Sobol.SobolSeq(D)
Sobol_sobolseq = vcat(zeros(1,D), hcat([Sobol.next!(s) for i = 1:N-1]...)') # Sobol package sobol seq function

py_sobolseq = load("data/py_uniform/py_sobolseq.csv", header_exists=false, colnames = ["x1", "x2", "x3"]) |> DataFrame

@testset "Sobol Sequence" begin
@test convert(Matrix, SALib_sobolseq) convert(Matrix, Sobol_sobolseq) atol = 1e-9
@test convert(Matrix, GSA_sobolseq) convert(Matrix, Sobol_sobolseq) atol = 1e-9
@test convert(Matrix, Sobol_sobolseq) convert(Matrix, py_sobolseq) atol = 1e-9
end

0 comments on commit 6cfcea6

Please sign in to comment.