Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
archermarx committed Jul 13, 2022
1 parent af72d23 commit bef6e07
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Kriging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gives the current estimate for array 'val' with respect to the Kriging object k.
function (k::Kriging)(val)

# Check to make sure dimensions of input matches expected dimension of surrogate
_check_dimension(k, val)
_check_dimension(k, val)

n = length(k.x)
d = length(val)
Expand Down
4 changes: 1 addition & 3 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ function _check_dimension(surr, input)
input_dim = length(input)

if input_dim != expected_dim
throw(
ArgumentError("This surrogate expects $expected_dim-dimensional inputs, but the input had dimension $input_dim.")
)
throw(ArgumentError("This surrogate expects $expected_dim-dimensional inputs, but the input had dimension $input_dim."))
end
return nothing
end
1 change: 0 additions & 1 deletion test/GEK.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ add_point!(my_gek, 2.5, 2.5^2)
@test_throws ArgumentError my_gek(Float64[])
@test_throws ArgumentError my_gek((2.0, 3.0, 4.0))


#ND
n = 10
d = 2
Expand Down

0 comments on commit bef6e07

Please sign in to comment.