From 784e369759571b456431098e5d33149fe99f1bf4 Mon Sep 17 00:00:00 2001 From: sloosvel Date: Fri, 22 Nov 2019 18:26:13 +0100 Subject: [PATCH 1/2] Replace output directory to avoid permission issue --- earthdiagnostics/datafile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/earthdiagnostics/datafile.py b/earthdiagnostics/datafile.py index a21248df..6dfe7c64 100644 --- a/earthdiagnostics/datafile.py +++ b/earthdiagnostics/datafile.py @@ -214,6 +214,8 @@ class DataFile(Publisher): def to_storage(cls, remote_file, data_convention): """Create a new datafile object for a file that is going to be generated and stored""" new_object = cls() + if 'cmorfiles' in remote_file: + remote_file = remote_file.replace('cmorfiles', 'diags') new_object.remote_file = remote_file new_object.storage_status = StorageStatus.PENDING new_object.data_convention = data_convention -- GitLab From 904d926a1c401e6e698e0b8bf96748c394b4ed63 Mon Sep 17 00:00:00 2001 From: sloosvel Date: Tue, 26 Nov 2019 12:07:10 +0100 Subject: [PATCH 2/2] Do not create link --- earthdiagnostics/datafile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earthdiagnostics/datafile.py b/earthdiagnostics/datafile.py index 6dfe7c64..95503447 100644 --- a/earthdiagnostics/datafile.py +++ b/earthdiagnostics/datafile.py @@ -274,7 +274,7 @@ class DataFile(Publisher): return Log.info('File {0} uploaded!', self.remote_file) - self.create_link() + # self.create_link() self.storage_status = StorageStatus.READY def set_local_file(self, local_file, diagnostic=None, rename_var='', region=None): -- GitLab