Skip to content

Commit

Permalink
correct invalid syntax; release_path to parameter attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
MeluXina user committed Jul 15, 2024
1 parent 63b7d3d commit 82c560a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions glamod_marine_processing/obs_suite/scripts/_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]

Expand Down

0 comments on commit 82c560a

Please sign in to comment.