diff --git a/Source/Python/Mods/tools.py b/Source/Python/Mods/tools.py index b16e26ab35d60c46acde332f74709c952400b287..a6f745d5d12444f7d41e88bfe553fc30b3d5e5b4 100644 --- a/Source/Python/Mods/tools.py +++ b/Source/Python/Mods/tools.py @@ -26,6 +26,10 @@ # - added function to check if a specific string is in a file # - added function to overwrite lines in a file which contain specific string # +# July 2022 - Anne Tipka (formerly Philipp) +# - modified function put_file_to_ecserver to put the file automatically +# to $HOME directory, to avoid static path creation +# # @License: # (C) Copyright 2014-2020. # Anne Philipp, Leopold Haimberger diff --git a/Source/Python/_config.py b/Source/Python/_config.py index b7d3741fb361c867f6c914314a1ae82f1b4557cf..778955d8a6f3df6d15108d62c3f66cb999bded21 100644 --- a/Source/Python/_config.py +++ b/Source/Python/_config.py @@ -13,6 +13,9 @@ # - added filename which will contain paths for system version # - checks if software runs in normal local mode or system local mode # and defines paths to user directory and executable paths +# July 2022 - Anne Tipka (formerly Philipp) +# - modified to account for changes on Bologna servers, +# e.g. queue names and hostnames # # @License: # (C) Copyright 2014-2020. diff --git a/Source/Python/install.py b/Source/Python/install.py index 11e6f3455d845ae987df5b07ea0a7f4b499262cd..720f74a4bda10dd73db51a02ea989dd09a9fa28d 100755 --- a/Source/Python/install.py +++ b/Source/Python/install.py @@ -26,6 +26,11 @@ # - read new argument from command line # - write .setup.rc for a system installation into Run directory # - copy executables to system path and user files to user path +# July 2022 - Anne Tipka (formerly Philipp) +# - BugFix: sysinstalldir must be defined in related else path +# - template files are now using $HOME and $SCRATCH and hence don't +# need ecmwf user group id. Eliminated from function mk_compile_job +# and mk_job_template # # @License: # (C) Copyright 2014-2020. @@ -680,7 +685,7 @@ def mk_compilejob(makefile, ecuid, fp_root): return -def mk_job_template(ecuid, ecgid, fp_root): +def mk_job_template(ecuid, fp_root): '''Modifies the original job template file so that it is specified for the user and the environment were it will be applied. Result is stored in a new file. @@ -690,9 +695,6 @@ def mk_job_template(ecuid, ecgid, fp_root): ecuid : str The user id on ECMWF server. - ecgid : str - The group id on ECMWF server. - fp_root : str Path to the root directory of FLEXPART environment or flex_extract environment. @@ -719,7 +721,6 @@ def mk_job_template(ecuid, ecgid, fp_root): cls=NewTextTemplate) stream = compile_template.generate( - usergroup=ecgid, username=ecuid, version_number=_config._VERSION_STR, fp_root_path=fp_root_path_to_python,