diff --git a/res2df/common.py b/res2df/common.py index a59e2590a..c9aef1e18 100644 --- a/res2df/common.py +++ b/res2df/common.py @@ -1,4 +1,4 @@ -"""Common functions for res2df modules""" +"""Common functions for ecl2df modules""" import argparse import datetime @@ -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 @@ -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), ) @@ -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", @@ -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_ in the calling module. @@ -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 @@ -596,7 +596,7 @@ def df2ecl( return "" string = "" - res2df_header = ( + ecl2df_header = ( "Output file printed by " + calling_module.__name__ # type: ignore + " " @@ -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"])