Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adnejacobsen committed Nov 6, 2023
1 parent 1978aaf commit a22d6b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/fmu/sumo/uploader/scripts/sumo_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,21 @@ def main() -> None:

sumo_upload_main(
casepath=args.casepath,
conf_path=args.conf_path,
searchpath=args.searchpath,
env=args.env,
metadata_path=args.metadata_path,
threads=args.threads,
config_path=args.config_path,
)


def sumo_upload_main(
casepath: str,
conf_path: str,
searchpath: str,
env: str,
metadata_path: str,
threads: int,
config_path: str,
) -> None:
"""A "main" function that can be used both from command line and from ERT workflow"""

Expand Down Expand Up @@ -117,7 +117,7 @@ def sumo_upload_main(
# upload the indexed files
logger.info("Starting upload")
e.upload(threads=threads, register_case=False)
e.upload_parameters_txt(glob_var_path=conf_path)
e.upload_parameters_txt(glob_var_path=config_path)
logger.info("Upload done")
except Exception as err:
logger.info("Problem related to Sumo upload: " f"{err}")
Expand Down Expand Up @@ -150,11 +150,11 @@ def run(self, *args):
_check_arguments(args)
sumo_upload_main(
casepath=args.casepath,
conf_path=args.conf_path,
searchpath=args.searchpath,
env=args.env,
metadata_path=args.metadata_path,
threads=args.threads,
config_path=args.config_path,
)


Expand All @@ -170,7 +170,7 @@ def _get_parser() -> argparse.ArgumentParser:
)
parser.add_argument("env", type=str, help="Sumo environment to use.")
parser.add_argument(
"conf_path",
"--config_path",
type=str,
help="Absolute path to global variables",
default="./fmuconfig/output/global_variables.yml",
Expand Down

0 comments on commit a22d6b1

Please sign in to comment.