Skip to content

Commit

Permalink
Eclipse keyword -> resdata keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Yngve S. Kristiansen committed Nov 14, 2023
1 parent 53d5ae7 commit adbf994
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions res2df/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Common functions for res2df modules"""
"""Common functions for ecl2df modules"""

import argparse
import datetime
Expand Down Expand Up @@ -26,10 +26,10 @@
# to be included in DeckItem objects.
from opm.io.deck import DeckKeyword # noqa
except ImportError:
# Allow parts of res2df to work without OPM:
# Allow parts of ecl2df to work without OPM:
pass

from res2df import __version__
from ecl2df import __version__

from .constants import MAGIC_STDOUT

Expand Down Expand Up @@ -450,7 +450,7 @@ def handle_wanted_keywords(
not_supported: Set[str] = set(wanted) - set(supported)
if not_supported:
logger.warning(
"Requested keyword(s) not supported by res2df.%s: %s",
"Requested keyword(s) not supported by ecl2df.%s: %s",
modulename,
str(not_supported),
)
Expand Down Expand Up @@ -481,7 +481,7 @@ def fill_reverse_parser(
defaultoutputfile: Default output filename
"""
parser.add_argument(
"csvfile", help="Name of CSV file with " + modulename + " data on res2df format"
"csvfile", help="Name of CSV file with " + modulename + " data on ecl2df format"
)
parser.add_argument(
"-o",
Expand Down Expand Up @@ -516,7 +516,7 @@ def df2ecl(
consecutive: Optional[str] = None,
filename: Optional[str] = None,
) -> str:
"""Generate Eclipse include strings from dataframes in res2df format.
"""Generate Eclipse include strings from dataframes in ecl2df format.
This function hands over the actual text generation pr. keyword
to functions named df2ecl_<keywordname> in the calling module.
Expand All @@ -525,7 +525,7 @@ def df2ecl(
for the actual string construction.
Args:
dataframe: Dataframe with Eclipse data on res2df format.
dataframe: Dataframe with Eclipse data on ecl2df format.
keywords: List of keywords to include. Will be reduced
to the set of keywords available in dataframe and to those supported
comments: Dictionary indexed by keyword with comments to be
Expand Down Expand Up @@ -596,7 +596,7 @@ def df2ecl(

return ""
string = ""
res2df_header = (
ecl2df_header = (
"Output file printed by "
+ calling_module.__name__ # type: ignore
+ " "
Expand All @@ -605,7 +605,7 @@ def df2ecl(
+ " at "
+ str(datetime.datetime.now())
)
string += comment_formatter(res2df_header)
string += comment_formatter(ecl2df_header)
string += "\n"
if "master" in comments:
string += comment_formatter(comments["master"])
Expand Down

0 comments on commit adbf994

Please sign in to comment.