From b4f2ee265c1a4cc72ae1a0d623933db94672e911 Mon Sep 17 00:00:00 2001 From: Daniel Berge Sollien Date: Tue, 13 Aug 2024 14:04:13 +0200 Subject: [PATCH] Add debug statement --- src/subscript/genertobs_unstable/_utilities.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/subscript/genertobs_unstable/_utilities.py b/src/subscript/genertobs_unstable/_utilities.py index acfeb5742..3777f4470 100644 --- a/src/subscript/genertobs_unstable/_utilities.py +++ b/src/subscript/genertobs_unstable/_utilities.py @@ -195,7 +195,9 @@ def convert_rft_to_list(frame: pd.DataFrame) -> list: "date", ] relevant_columns = keepers + additionals - narrowed_down = frame.loc[:, frame.columns.isin(relevant_columns)] + logger.debug("Hoping for these columns %s, available are %s", + relevant_columns, frame.columns.to_list()) + narrowed_down = frame.loc[:, frame.columns.isin(relevant_columns)] well_names = narrowed_down.well_name.unique().tolist() logger.debug("%s wells to write (%s)", len(well_names), well_names) for well_name in well_names: