Skip to content

Commit

Permalink
fix SALib depreciation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
erexer committed Jan 4, 2025
1 parent fd1d665 commit 74f519c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 25 deletions.
9 changes: 5 additions & 4 deletions docs/source/A2.2_saltelli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ walkthrough.
# Import relevant libraries
import matplotlib.pyplot as plt
from SALib.sample import saltelli
import SALib.sample.sobol as sobol_sample
from SALib.analyze import sobol
from SALib.test_functions import Ishigami
Expand Down Expand Up @@ -85,8 +85,9 @@ resulting Saltelli sample.

.. code:: ipython3
#Generate parmeter values using the saltelli.sample function
param_values = saltelli.sample(problem, 256)
# Generate parmeter values using the saltelli.sample function
param_values = sobol_sample.sample(problem, 256)
print(f"`param_values` shape: {param_values.shape}")
Expand All @@ -98,7 +99,7 @@ resulting Saltelli sample.
.. code:: ipython3
#Plot the 2048 samples of the parameters
# Plot the 2048 samples of the parameters
fig = plt.figure(figsize = (7, 5))
ax = plt.axes(projection ="3d")
Expand Down
34 changes: 13 additions & 21 deletions notebooks/sa_saltelli_sobol_ishigami.ipynb

Large diffs are not rendered by default.

0 comments on commit 74f519c

Please sign in to comment.