Skip to content

Commit

Permalink
Remove suffix before calling res2df (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
equinor-ruaj authored Sep 18, 2024
1 parent d85d359 commit 8c075de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fmu/sumo/sim2sumo/_special_treatments.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ def vfp_to_arrow_dict(datafile, options):
tuple: vfp keyword, then dictionary with key: table_name, value: table
"""
logger = logging.getLogger(__file__ + ".vfp_to_arrow_dict")
resdatafiles = res2df.ResdataFiles(datafile)
filepath_no_suffix = Path(datafile).with_suffix("")
resdatafiles = res2df.ResdataFiles(filepath_no_suffix)
vfp_dict = {}
keyword = options.get("keyword", ["VFPPROD", "VFPINJ"])
logger.debug("keyword is %s", keyword)
Expand Down
1 change: 1 addition & 0 deletions src/fmu/sumo/sim2sumo/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

import logging
from pathlib import Path
import sys
from typing import Union

Expand Down

0 comments on commit 8c075de

Please sign in to comment.