Skip to content

Commit

Permalink
Fix linting and mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alifbe committed Oct 27, 2023
1 parent 7b0ff05 commit 4aa83c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/subscript/fmuobs/fmuobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def fmuobs(

# Trigger warning if user specify ERROR_MODE != ABS
# in BLOCK_OBSERVATION and SUMMARY_OBSERVATION
if "ERROR_MODE" in dframe.columns:
if isinstance(dframe, pd.DataFrame) and "ERROR_MODE" in dframe.columns:
error_mode = list(
dframe[
(dframe["CLASS"].isin(["BLOCK_OBSERVATION", "SUMMARY_OBSERVATION"]))
Expand All @@ -359,7 +359,8 @@ def fmuobs(
)
if len(error_mode) > 0:
logger.warn(
f"Unsupported ERROR_MODE : {', '.join(error_mode)}. Please verify the output file"
f"Unsupported ERROR_MODE : {', '.join(error_mode)}. "
"Please verify the output file"
)

dump_results(dframe, csv, yml, resinsight, ertobs)
Expand Down

0 comments on commit 4aa83c5

Please sign in to comment.