Format
This commit is contained in:
parent
fcecda6cc6
commit
24ca3269a2
1 changed files with 27 additions and 11 deletions
|
@ -52,7 +52,9 @@ class DataModelUtil():
|
||||||
# Get their symbol
|
# Get their symbol
|
||||||
return {obj: callback_symbols.loc[obj, 'symbol'] for obj in callback_objects}
|
return {obj: callback_symbols.loc[obj, 'symbol'] for obj in callback_objects}
|
||||||
|
|
||||||
def get_callback_durations(self, callback_obj: int) -> DataFrame:
|
def get_callback_durations(
|
||||||
|
self, callback_obj: int
|
||||||
|
) -> DataFrame:
|
||||||
"""
|
"""
|
||||||
Get durations of callback instances for a given callback object.
|
Get durations of callback instances for a given callback object.
|
||||||
|
|
||||||
|
@ -64,7 +66,9 @@ class DataModelUtil():
|
||||||
:
|
:
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_callback_owner_info(self, callback_obj: int) -> Union[str, None]:
|
def get_callback_owner_info(
|
||||||
|
self, callback_obj: int
|
||||||
|
) -> Union[str, None]:
|
||||||
"""
|
"""
|
||||||
Get information about the owner of a callback.
|
Get information about the owner of a callback.
|
||||||
|
|
||||||
|
@ -104,7 +108,9 @@ class DataModelUtil():
|
||||||
info = f'{type_name} -- {self.format_info_dict(info)}'
|
info = f'{type_name} -- {self.format_info_dict(info)}'
|
||||||
return info
|
return info
|
||||||
|
|
||||||
def get_timer_handle_info(self, timer_handle: int) -> Union[Mapping[str, Any], None]:
|
def get_timer_handle_info(
|
||||||
|
self, timer_handle: int
|
||||||
|
) -> Union[Mapping[str, Any], None]:
|
||||||
"""
|
"""
|
||||||
Get information about the owner of a timer.
|
Get information about the owner of a timer.
|
||||||
|
|
||||||
|
@ -120,7 +126,9 @@ class DataModelUtil():
|
||||||
period_ms = period_ns / 1000000.0
|
period_ms = period_ns / 1000000.0
|
||||||
return {'tid': tid, 'period': f'{period_ms:.0f} ms'}
|
return {'tid': tid, 'period': f'{period_ms:.0f} ms'}
|
||||||
|
|
||||||
def get_publisher_handle_info(self, publisher_handle: int) -> Union[Mapping[str, Any], None]:
|
def get_publisher_handle_info(
|
||||||
|
self, publisher_handle: int
|
||||||
|
) -> Union[Mapping[str, Any], None]:
|
||||||
"""
|
"""
|
||||||
Get information about a publisher handle.
|
Get information about a publisher handle.
|
||||||
|
|
||||||
|
@ -136,7 +144,9 @@ class DataModelUtil():
|
||||||
publisher_info = {'topic': topic_name}
|
publisher_info = {'topic': topic_name}
|
||||||
return {**node_handle_info, **publisher_info}
|
return {**node_handle_info, **publisher_info}
|
||||||
|
|
||||||
def get_subscription_handle_info(self, subscription_handle: int) -> Union[Mapping[str, Any], None]:
|
def get_subscription_handle_info(
|
||||||
|
self, subscription_handle: int
|
||||||
|
) -> Union[Mapping[str, Any], None]:
|
||||||
"""
|
"""
|
||||||
Get information about a subscription handle.
|
Get information about a subscription handle.
|
||||||
|
|
||||||
|
@ -156,7 +166,9 @@ class DataModelUtil():
|
||||||
subscription_info = {'topic': topic_name}
|
subscription_info = {'topic': topic_name}
|
||||||
return {**node_handle_info, **subscription_info}
|
return {**node_handle_info, **subscription_info}
|
||||||
|
|
||||||
def get_service_handle_info(self, service_handle: int) -> Union[Mapping[str, Any], None]:
|
def get_service_handle_info(
|
||||||
|
self, service_handle: int
|
||||||
|
) -> Union[Mapping[str, Any], None]:
|
||||||
"""
|
"""
|
||||||
Get information about a service handle.
|
Get information about a service handle.
|
||||||
|
|
||||||
|
@ -172,7 +184,9 @@ class DataModelUtil():
|
||||||
service_info = {'service': service_name}
|
service_info = {'service': service_name}
|
||||||
return {**node_handle_info, **service_info}
|
return {**node_handle_info, **service_info}
|
||||||
|
|
||||||
def get_client_handle_info(self, client_handle: int) -> Union[Mapping[str, Any], None]:
|
def get_client_handle_info(
|
||||||
|
self, client_handle: int
|
||||||
|
) -> Union[Mapping[str, Any], None]:
|
||||||
"""
|
"""
|
||||||
Get information about a client handle.
|
Get information about a client handle.
|
||||||
|
|
||||||
|
@ -188,7 +202,9 @@ class DataModelUtil():
|
||||||
service_info = {'service': service_name}
|
service_info = {'service': service_name}
|
||||||
return {**node_handle_info, **service_info}
|
return {**node_handle_info, **service_info}
|
||||||
|
|
||||||
def get_node_handle_info(self, node_handle: int) -> Union[Mapping[str, Any], None]:
|
def get_node_handle_info(
|
||||||
|
self, node_handle: int
|
||||||
|
) -> Union[Mapping[str, Any], None]:
|
||||||
"""
|
"""
|
||||||
Get information about a node handle.
|
Get information about a node handle.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue