Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 15, 2024
1 parent 82c560a commit f827be4
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions glamod_marine_processing/obs_suite/scripts/_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,13 @@ def __init__(self, process_options, inargs, level, level_prev):
self.prev_fileID = self.fileID

if level == "level1a":
self.prev_level_path = os.path.join(self.data_path, "datasets", self.dataset, "level0", self.sid_dck)
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(self.release_path, level_prev, 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(
self.release_path, level, "quicklooks", self.sid_dck
Expand All @@ -95,7 +99,14 @@ def __init__(self, process_options, inargs, level, level_prev):
self.level_reports_path = os.path.join(
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]
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,
]

if any([not os.path.isdir(x) for x in data_paths]):
logging.error(
Expand Down

0 comments on commit f827be4

Please sign in to comment.