Skip to content

Commit

Permalink
update register_webview_plot documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
David P. Hoogerheide authored and David P. Hoogerheide committed Oct 3, 2024
1 parent f3c1c7e commit 7957b85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion refl1d/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,10 @@ def save_refl(self, basename):
def register_webview_plot(
self, plot_title: str, plot_function: WebviewPlotFunction, change_with: Literal["parameter", "uncertainty"]
):
# Plot function syntax: f(model, problem, state)
# change_with = 'parameter' or 'uncertainty'
# Plot function syntax: f(model, problem) for 'parameter'
# f(model, problem, state, n_samples) for 'uncertainty'

self._webview_plots[plot_title] = dict(change_with=change_with, func=plot_function)

@property
Expand Down

0 comments on commit 7957b85

Please sign in to comment.