From f9670e53cead3590e0dd0252dc5c6be1df9d562d Mon Sep 17 00:00:00 2001 From: michael <m.langguth@fz-juelich.de> Date: Tue, 9 Jun 2020 12:33:33 +0200 Subject: [PATCH] Some bugfixes in 'mpi_stager_v2_process_netCDF.py' --- DataPreprocess/mpi_stager_v2_process_netCDF.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataPreprocess/mpi_stager_v2_process_netCDF.py b/DataPreprocess/mpi_stager_v2_process_netCDF.py index 3e16ee80..d9caf3ad 100755 --- a/DataPreprocess/mpi_stager_v2_process_netCDF.py +++ b/DataPreprocess/mpi_stager_v2_process_netCDF.py @@ -114,14 +114,14 @@ def main(): md = MetaData(suffix_indir=destination_dir,data_filename=data_files_list[0],slices=slices,variables=vars) # modify Batch scripts if metadata has been retrieved for the first time (md.status = "new") - if (md.status = "new"): + if (md.status == "new"): md.write_dirs_to_batch_scripts(scr_dir+"/DataPreprocess_to_tf.sh") #md.write_dirs_to_batch_scripts(scr_dir+"/generate_era5.sh") #md.write_dirs_to_batch_scripts(scr_dir+"/train_era5.sh") # ML 2020/06/08: Dirty workaround as long as data-splitting is done with a seperate Python-script # called from the same parent Shell-/Batch-script # -> work with temproary json-file in working directory - md.write_destdir_jsontmp(os.path.join(self.expdir,self.expname)) + md.write_destdir_jsontmp(os.path.join(md.expdir,md.expname)) #else: nothing to do destination_dir= os.path.join(md.expdir,md.expname,"hickle",years) -- GitLab