Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/workflow/ParameterManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def save_parameters(self) -> None:
with open(self.params_file, "w", encoding="utf-8") as f:
json.dump(json_params, f, indent=4)

def get_parameters_from_json(self) -> None:
def get_parameters_from_json(self) -> dict:
"""
Loads parameters from the JSON file if it exists and returns them as a dictionary.
If the file does not exist, it returns an empty dictionary.
Expand All @@ -104,4 +104,4 @@ def reset_to_default_parameters(self) -> None:
JSON file.
"""
# Delete custom params json file
self.params_file.unlink(missing_ok=True)
self.params_file.unlink(missing_ok=True)