Skip to content

Commit

Permalink
No Active Rfts error message (#1304)
Browse files Browse the repository at this point in the history
Co-authored-by: Øyvind Lind-Johansen <[email protected]>
  • Loading branch information
lindjoha and Øyvind Lind-Johansen authored Nov 12, 2024
1 parent 4c25cfb commit bc3f403
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bc3f403

Please sign in to comment.