Commit 4ef2125b authored by Christophe Bedard's avatar Christophe Bedard Committed by Christophe Bedard

Revert "Avoid re-creating an entire dataframe when appending"

This reverts commit 42ad42f4.
parent d3879fc0
Pipeline #84173577 passed with stage
in 2 minutes and 35 seconds
......@@ -49,7 +49,7 @@ class CpuTimeDataModel(DataModel):
'duration': duration,
'cpu_id': cpu_id,
}
self.times.loc[len(self.times.index)] = data
self.times = self.times.append(data, ignore_index=True)
def print_model(self) -> None:
"""Debug method to print every contained df."""
......
......@@ -59,7 +59,7 @@ class ProfileDataModel(DataModel):
'duration': duration,
'actual_duration': actual_duration,
}
self.times.loc[len(self.times.index)] = data
self.times = self.times.append(data, ignore_index=True)
def print_model(self) -> None:
"""Debug method to print every contained df."""
......
......@@ -143,7 +143,7 @@ class RosDataModel(DataModel):
'duration': duration,
'intra_process': intra_process,
}
self.callback_instances.loc[len(self.callback_instances.index)] = data
self.callback_instances = self.callback_instances.append(data, ignore_index=True)
def print_model(self) -> None:
"""Debug method to print every contained df."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment