Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/subscript/fmuobs/fmuobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def validate_internal_dframe(obs_df: pd.DataFrame) -> bool:
failed = True
non_supported_classes = set(obs_df["CLASS"]) - set(CLASS_SHORTNAME.keys())
if non_supported_classes:
logger.error("Unsupported observation classes: %s", non_supported_classes)
logger.warning("Unsupported observation classes: %s", non_supported_classes)
failed = True
Comment on lines 167 to 170

index = {"CLASS", "LABEL", "OBS", "SEGMENT"}.intersection(set(obs_df.columns))
Expand Down Expand Up @@ -342,7 +342,7 @@ def fmuobs(
dframe = compute_date_from_days(dframe, starttime=starttime)

if not validate_internal_dframe(dframe):
logger.error("Observation dataframe is invalid!")
logger.warning("Observation dataframe is invalid or has invalid data.")

# Trigger warning if user specify ERROR_MODE != ABS
# in BLOCK_OBSERVATION and SUMMARY_OBSERVATION
Expand Down