From 82c560a51f87a1b94c17c36d7b7ce6447692d25b Mon Sep 17 00:00:00 2001 From: MeluXina user Date: Mon, 15 Jul 2024 08:54:15 +0200 Subject: [PATCH] correct invalid syntax; release_path to parameter attributes --- .../obs_suite/scripts/_utilities.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/glamod_marine_processing/obs_suite/scripts/_utilities.py b/glamod_marine_processing/obs_suite/scripts/_utilities.py index 315dc459..608bc9cc 100755 --- a/glamod_marine_processing/obs_suite/scripts/_utilities.py +++ b/glamod_marine_processing/obs_suite/scripts/_utilities.py @@ -66,7 +66,7 @@ def __init__(self, process_options, inargs, level, level_prev): self.filename = config.get("filename") self.level2_list = config.get("cmd_add_file") self.prev_fileID = config.get("prev_fileID") - release_path = os.path.join(self.data_path, self.release, self.dataset) + self.release_path = os.path.join(self.data_path, self.release, self.dataset) self.release_id = FFS.join([self.release, self.update]) self.fileID = FFS.join( [str(self.year), str(self.month).zfill(2), self.release_id] @@ -75,25 +75,25 @@ def __init__(self, process_options, inargs, level, level_prev): if self.prev_fileID is None: self.prev_fileID = self.fileID - if level = "level1a": + if level == "level1a": self.prev_level_path = os.path.join(self.data_path, "datasets", self.dataset, "level0", self.sid_dck) else: - self.prev_level_path = os.path.join(release_path, level_prev, self.sid_dck) - self.level_path = os.path.join(release_path, level, self.sid_dck) + self.prev_level_path = os.path.join(self.release_path, level_prev, self.sid_dck) + self.level_path = os.path.join(self.release_path, level, self.sid_dck) self.level_ql_path = os.path.join( - release_path, level, "quicklooks", self.sid_dck + self.release_path, level, "quicklooks", self.sid_dck ) self.level_log_path = os.path.join( self.release_path, level, "log", self.sid_dck ) self.level_invalid_path = os.path.join( - release_path, level, "invalid", self.sid_dck + self.release_path, level, "invalid", self.sid_dck ) self.level_excluded_path = os.path.join( - release_path, level, "excluded", self.sid_dck + self.release_path, level, "excluded", self.sid_dck ) self.level_reports_path = os.path.join( - release_path, level, "reports", self.sid_dck + self.release_path, level, "reports", self.sid_dck ) data_paths = [self.prev_level_path, self.level_path, self.level_ql_path, self.level_log_path, self.level_invalid_path, self.level_excluded_path]