Skip to content

Commit

Permalink
SimulationTimeSeries: Add statistics after realizations (#913)
Browse files Browse the repository at this point in the history
`SimulationTimeSeries`: Add statistics after realizations
  • Loading branch information
asnyv authored Jan 7, 2022
1 parent a8701c7 commit ab38a56
Showing 1 changed file with 10 additions and 9 deletions.
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
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

0 comments on commit ab38a56

Please sign in to comment.