Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 18, 2023
1 parent e79566a commit 05c902d
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions scripts/monte_carlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def monte_carlo_sampling_pydoe2(
random_state,
criterion=None,
iteration=None,
correlation_matrix=None
correlation_matrix=None,
):
"""
Creates Latin Hypercube Sample (LHS) implementation from PyDOE2 with
Expand Down Expand Up @@ -133,11 +133,7 @@ def monte_carlo_sampling_pydoe2(


def monte_carlo_sampling_chaospy(
N_FEATURES,
SAMPLES,
uncertainties_values,
seed,
rule="latin_hypercube"
N_FEATURES, SAMPLES, uncertainties_values, seed, rule="latin_hypercube"
):
"""
Creates Latin Hypercube Sample (LHS) implementation from chaospy.
Expand Down Expand Up @@ -171,7 +167,7 @@ def monte_carlo_sampling_scipy(
seed,
centered=False,
strength=2,
optimization=None
optimization=None,
):
"""
Creates Latin Hypercube Sample (LHS) implementation from SciPy with various
Expand Down Expand Up @@ -390,7 +386,7 @@ def validate_parameters(sampling_strategy, samples, uncertainties_values):
random_state=seed,
criterion=None,
iteration=None,
correlation_matrix=None
correlation_matrix=None,
)
if SAMPLING_STRATEGY == "scipy":
lh = monte_carlo_sampling_scipy(
Expand All @@ -400,15 +396,11 @@ def validate_parameters(sampling_strategy, samples, uncertainties_values):
seed=seed,
centered=False,
strength=2,
optimization=None
optimization=None,
)
if SAMPLING_STRATEGY == "chaospy":
lh = monte_carlo_sampling_chaospy(
N_FEATURES,
SAMPLES,
uncertainties_values,
seed=seed,
rule="latin_hypercube"
N_FEATURES, SAMPLES, uncertainties_values, seed=seed, rule="latin_hypercube"
)

### MONTE-CARLO MODIFICATIONS
Expand Down

0 comments on commit 05c902d

Please sign in to comment.