Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimulationTimeSeries: Add statistics after realizations #913

Merged
merged 3 commits into from
Jan 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions webviz_subsurface/plugins/_simulation_time_series/_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,15 +320,8 @@ def _update_graph(
)
if visualization == VisualizationOptions.STATISTICS_AND_REALIZATIONS:
# Configure line width and color scaling to easier separate
# statistics traces and realization traces
vectors_statistics_df = create_vectors_statistics_df(vectors_df)
figure_builder.add_statistics_traces(
vectors_statistics_df,
ensemble,
statistics_options,
line_width=3,
)
# Show selected realizations on top - only filter df if realizations filter
# statistics traces and realization traces.
# Show selected realizations - only filter df if realizations filter
# query is not performed
asnyv marked this conversation as resolved.
Show resolved Hide resolved
figure_builder.add_realizations_traces(
vectors_df
Expand All @@ -337,6 +330,14 @@ def _update_graph(
ensemble,
color_lightness_scale=150.0,
)
# Add statistics on top
vectors_statistics_df = create_vectors_statistics_df(vectors_df)
figure_builder.add_statistics_traces(
vectors_statistics_df,
ensemble,
statistics_options,
line_width=3,
)

# Retrieve selected input providers
selected_input_providers = ProviderSet(
Expand Down