Skip to content

Commit

Permalink
(WIP) Added "?"
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeltrankyl committed Nov 14, 2024
1 parent 53609aa commit 6243949
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions autosubmitconfigparser/config/configcommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ def _normalize_jobs_section(self, data_fixed: dict, must_exists: bool ) -> None:
if "ADDITIONAL_FILES" not in data_fixed["JOBS"][job] and must_exists:
data_fixed["JOBS"][job]["ADDITIONAL_FILES"] = []


@staticmethod
def _normalize_dependencies(dependencies: Union[str, dict]) -> dict:
aux_dependencies = {}
Expand All @@ -584,6 +585,12 @@ def _normalize_dependencies(dependencies: Union[str, dict]) -> dict:
elif isinstance(dependencies, dict):
for dependency, dependency_data in dependencies.items():
aux_dependencies[dependency.upper()] = dependency_data
if type(dependency_data) is dict and dependency_data.get("STATUS", None):
dependency_data["STATUS"] = dependency_data["STATUS"].upper()
if dependency_data["STATUS"][-1] == "?":
dependency_data["STATUS"] = dependency_data["STATUS"][:-1]
dependency_data["OPTIONAL"] = True

return aux_dependencies

@staticmethod
Expand Down

0 comments on commit 6243949

Please sign in to comment.