Skip to content

Commit

Permalink
chore(SurrogatesPolyChaos): fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Apr 5, 2024
1 parent 1f0d451 commit 8ba0da6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/SurrogatesPolyChaos/src/SurrogatesPolyChaos.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ using PolyChaos

export PolynomialChaosSurrogate, update!

mutable struct PolynomialChaosSurrogate{X, Y, L, U, C, O, N} <: AbstractDeterministicSurrogate
mutable struct PolynomialChaosSurrogate{X, Y, L, U, C, O, N} <:
AbstractDeterministicSurrogate
x::X
y::Y
lb::L
Expand All @@ -16,7 +17,7 @@ mutable struct PolynomialChaosSurrogate{X, Y, L, U, C, O, N} <: AbstractDetermin
end

function PolynomialChaosSurrogate(x, y, lb, ub;

Check warning on line 19 in lib/SurrogatesPolyChaos/src/SurrogatesPolyChaos.jl

View check run for this annotation

Codecov / codecov/patch

lib/SurrogatesPolyChaos/src/SurrogatesPolyChaos.jl#L19

Added line #L19 was not covered by tests
op = MultiOrthoPoly([GaussOrthoPoly(2) for j in 1:length(lb)], 2))
op = MultiOrthoPoly([GaussOrthoPoly(2) for j in 1:length(lb)], 2))
n = length(x)
d = length(lb)

Check warning on line 22 in lib/SurrogatesPolyChaos/src/SurrogatesPolyChaos.jl

View check run for this annotation

Codecov / codecov/patch

lib/SurrogatesPolyChaos/src/SurrogatesPolyChaos.jl#L22

Added line #L22 was not covered by tests
poly_degree = op.deg
Expand Down Expand Up @@ -70,7 +71,7 @@ function SurrogatesBase.update!(polych::PolynomialChaosSurrogate, x_new, y_new)
polych.x = vcat(polych.x, x_new)
polych.y = vcat(polych.y, y_new)
polych.coeff = _calculatepce_coeff(polych.x, polych.y, polych.num_of_multi_indexes,

Check warning on line 73 in lib/SurrogatesPolyChaos/src/SurrogatesPolyChaos.jl

View check run for this annotation

Codecov / codecov/patch

lib/SurrogatesPolyChaos/src/SurrogatesPolyChaos.jl#L70-L73

Added lines #L70 - L73 were not covered by tests
polych.ortopolys)
polych.ortopolys)
nothing
end

Expand Down

0 comments on commit 8ba0da6

Please sign in to comment.