diff --git a/source/python/mods/get_mars_data.py b/source/python/mods/get_mars_data.py index d96075bb733000cdd9519ed1bf47a28448a4755c..9805570d7f77a8967d357692681cc4028eb70abe 100755 --- a/source/python/mods/get_mars_data.py +++ b/source/python/mods/get_mars_data.py @@ -69,7 +69,7 @@ from datetime import datetime, timedelta sys.path.append(os.path.dirname(os.path.abspath( inspect.getfile(inspect.currentframe()))) + '/../') import _config -from tools import (my_error, normal_exit, get_cmdline_arguments, +from tools import (my_error, normal_exit, get_cmdline_args, read_ecenv, make_dir) from classes.EcFlexpart import EcFlexpart from classes.UioFiles import UioFiles @@ -97,7 +97,7 @@ def main(): ''' - args = get_cmdline_arguments() + args = get_cmdline_args() c = ControlFile(args.controlfile) env_parameter = read_ecenv(_config.PATH_ECMWF_ENV) diff --git a/source/python/mods/prepare_flexpart.py b/source/python/mods/prepare_flexpart.py index 0b955349c61293c54335f07393b660b75b0b03b5..1ef589c955f3f95da7f8c956c65490e087a4b684 100755 --- a/source/python/mods/prepare_flexpart.py +++ b/source/python/mods/prepare_flexpart.py @@ -65,7 +65,7 @@ import _config from checks import check_ppid from classes.UioFiles import UioFiles from classes.ControlFile import ControlFile -from tools import clean_up, get_cmdline_arguments, read_ecenv, make_dir +from tools import clean_up, get_cmdline_args, read_ecenv, make_dir from classes.EcFlexpart import EcFlexpart ecapi = 'ecmwf' not in socket.gethostname() @@ -92,7 +92,7 @@ def main(): ''' - args = get_cmdline_arguments() + args = get_cmdline_args() c = ControlFile(args.controlfile) env_parameter = read_ecenv(_config.PATH_ECMWF_ENV) diff --git a/source/python/mods/tools.py b/source/python/mods/tools.py index 6cbc2f1ac144e31b523898a828693ad1a7dd2a5b..03ae957a96b19e9d183dfbe79ef3062995a987f4 100644 --- a/source/python/mods/tools.py +++ b/source/python/mods/tools.py @@ -31,7 +31,7 @@ # used in different places in flex_extract. # # @Module Content: -# - get_cmdline_arguments +# - get_cmdline_args # - clean_up # - my_error # - normal_exit @@ -100,7 +100,7 @@ def none_or_int(value): return None return int(value) -def get_cmdline_arguments(): +def get_cmdline_args(): '''Decomposes the command line arguments and assigns them to variables. Apply default values for non mentioned arguments. diff --git a/source/python/submit.py b/source/python/submit.py index 55a4b891a0547c82a5ad4a707d32a3b1a5041966..99b320266bbaa45965be905486446970fb8e94c4 100755 --- a/source/python/submit.py +++ b/source/python/submit.py @@ -50,7 +50,7 @@ import collections # software specific classes and modules from flex_extract import _config -from mods.tools import (normal_exit, get_cmdline_arguments, +from mods.tools import (normal_exit, get_cmdline_args, submit_job_to_ecserver, read_ecenv) from mods.get_mars_data import get_mars_data from mods.prepare_flexpart import prepare_flexpart @@ -74,7 +74,7 @@ def main(): ''' - args = get_cmdline_arguments() + args = get_cmdline_args() c = ControlFile(args.controlfile) env_parameter = read_ecenv(_config.PATH_ECMWF_ENV)