Rename to print_data() (oops)
This commit is contained in:
parent
7347900349
commit
3eac741a4c
6 changed files with 6 additions and 6 deletions
|
@ -69,7 +69,7 @@
|
|||
"# Process\n",
|
||||
"events = load_file(converted_file_path)\n",
|
||||
"handler = Ros2Handler.process(events)\n",
|
||||
"#handler.data.print()"
|
||||
"#handler.data.print_data()"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -26,6 +26,6 @@ class DataModel():
|
|||
def __init__(self) -> None:
|
||||
pass
|
||||
|
||||
def print(self) -> None:
|
||||
def print_data(self) -> None:
|
||||
"""Print the data model."""
|
||||
return None
|
||||
|
|
|
@ -51,7 +51,7 @@ class CpuTimeDataModel(DataModel):
|
|||
}
|
||||
self.times = self.times.append(data, ignore_index=True)
|
||||
|
||||
def print(self) -> None:
|
||||
def print_data(self) -> None:
|
||||
print('====================CPU TIME DATA MODEL====================')
|
||||
tail = 20
|
||||
print(f'Times (tail={tail}):')
|
||||
|
|
|
@ -61,7 +61,7 @@ class ProfileDataModel(DataModel):
|
|||
}
|
||||
self.times = self.times.append(data, ignore_index=True)
|
||||
|
||||
def print(self) -> None:
|
||||
def print_data(self) -> None:
|
||||
print('====================PROFILE DATA MODEL====================')
|
||||
tail = 20
|
||||
print(f'Times (tail={tail}):')
|
||||
|
|
|
@ -154,7 +154,7 @@ class Ros2DataModel(DataModel):
|
|||
}
|
||||
self.callback_instances = self.callback_instances.append(data, ignore_index=True)
|
||||
|
||||
def print(self) -> None:
|
||||
def print_data(self) -> None:
|
||||
print('====================ROS 2 DATA MODEL===================')
|
||||
print('Contexts:')
|
||||
print(self.contexts.to_string())
|
||||
|
|
|
@ -137,7 +137,7 @@ def process(
|
|||
ros2_handler = Ros2Handler.process(events)
|
||||
|
||||
time_diff = time.time() - start_time
|
||||
ros2_handler.data.print()
|
||||
ros2_handler.data.print_data()
|
||||
print(f'processed {len(events)} events in {time_diff_to_str(time_diff)}')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue