From 5f0e8dc04f089e5c18a6b13cf33a3cb77d819177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Fredrik=20Ki=C3=A6r?= Date: Mon, 30 Aug 2021 17:51:53 +0200 Subject: [PATCH] Fix for single valued columns --- CHANGELOG.md | 4 ++++ .../plugins/_line_plotter_fmu/controllers/build_figure.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6e61ffb6..cfe15e669 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [#717](https://github.com/equinor/webviz-subsurface/pull/717) - Keep zoom state in `ReservoirSimulationTimeseries` (inc `Regional` and `OneByOne`) and `RelativePermeability` plugins using `uirevision`. - [#707](https://github.com/equinor/webviz-subsurface/pull/707) - Generalized and improved some plot functions in `PropertyStatistics`, `ParameterAnalysis` and `VolumetricAnalysis`. Replaced histogram with distribution plot in `PropertyStatistics`. +### Fixed +- [#749](https://github.com/equinor/webviz-subsurface/pull/749) - `LinePlotterFMU` check function for `x` axis value alignment across realizations now supports single valued columns. + + ## [0.2.4] - 2021-07-13 ### Added diff --git a/webviz_subsurface/plugins/_line_plotter_fmu/controllers/build_figure.py b/webviz_subsurface/plugins/_line_plotter_fmu/controllers/build_figure.py index e9df7f79d..8e7157f30 100644 --- a/webviz_subsurface/plugins/_line_plotter_fmu/controllers/build_figure.py +++ b/webviz_subsurface/plugins/_line_plotter_fmu/controllers/build_figure.py @@ -194,7 +194,7 @@ def _update_statistics_options( realizations = list(ens_df["REAL"].unique()) equal_x = all( ( - all( + np.all( ens_df.loc[ens_df["REAL"] == real][x_column_name].values == ens_df.loc[ens_df["REAL"] == realizations[0]][ x_column_name