Skip to content

Commit

Permalink
feat: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
mkundu1 committed Dec 20, 2024
1 parent a23a081 commit b5ac36e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/ansys/fluent/core/services/datamodel_tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def get_static_info(self, path: str):
request = DataModelProtoModule.GetStaticInfoRequest()
request.path = path
response = self._impl.get_static_info(request)
return MessageToDict(response.info, including_default_value_fields=True)
# Note: MessageToDict's parameter names are different in different protobuf versions
return MessageToDict(response.info, True)


class PyMenu:
Expand Down
5 changes: 2 additions & 3 deletions src/ansys/fluent/core/streaming_services/events_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,8 @@ def _construct_event_info(
self, response: EventsProtoModule.BeginStreamingResponse, event: TEvent
):
event_info_msg = getattr(response, event.value.lower())
event_info_dict = MessageToDict(
event_info_msg, including_default_value_fields=True
)
# Note: MessageToDict's parameter names are different in different protobuf versions
event_info_dict = MessageToDict(event_info_msg, True)
solver_event = SolverEvent(event.value)
event_info_cls = EventInfoBase.derived_classes.get(solver_event)
# Key names can be different, but their order is the same
Expand Down

0 comments on commit b5ac36e

Please sign in to comment.