diff --git a/webviz_subsurface/plugins/_rft_plotter/_utils/_rft_plotter_data_model.py b/webviz_subsurface/plugins/_rft_plotter/_utils/_rft_plotter_data_model.py index 53e6c4b3d..8faa1373f 100644 --- a/webviz_subsurface/plugins/_rft_plotter/_utils/_rft_plotter_data_model.py +++ b/webviz_subsurface/plugins/_rft_plotter/_utils/_rft_plotter_data_model.py @@ -116,6 +116,9 @@ def __init__( self.ertdatadf_inactive = filter_frame(self.ertdatadf, {"ACTIVE": 0}) self.ertdatadf = filter_frame(self.ertdatadf, {"ACTIVE": 1}) + if self.ertdatadf.empty: + raise ValueError("There are no active RFT points in the input data.") + self.ertdatadf["STDDEV"] = self.ertdatadf.groupby( ["WELL", "DATE", "ZONE", "ENSEMBLE", "TVD"] )["SIMULATED"].transform("std")