Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: backwards compatibility of NWMRequest #511

Merged
merged 2 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion python/lib/communication/dmod/communication/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.16.1'
__version__ = '0.16.2'
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,14 @@ def __init__(
super().__init__(**data)
else:
data["request_body"] = dict()
nwm_inner_request_body = {"config_data_id": config_data_id}
data["request_body"]["nwm"] = nwm_inner_request_body
if "model" in data:
nwm_inner_request_body = data["model"][self.get_model_name()]
if config_data_id is not None:
nwm_inner_request_body["config_data_id"] = config_data_id
data["request_body"][self.get_model_name()] = nwm_inner_request_body
else:
data["request_body"][self.get_model_name()] = {"config_data_id": config_data_id}

super().__init__(**data)

@classmethod
Expand Down
Loading