Define DataModel constructor to avoid conflicting D204 and D211
This commit is contained in:
parent
267e02480f
commit
54c581f54d
4 changed files with 7 additions and 1 deletions
|
@ -22,4 +22,6 @@ class DataModel():
|
||||||
Contains data for an analysis to use. This is a middleground between trace events data and the
|
Contains data for an analysis to use. This is a middleground between trace events data and the
|
||||||
output data of an analysis. It uses pandas `DataFrame` directly.
|
output data of an analysis. It uses pandas `DataFrame` directly.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
pass
|
||||||
|
|
|
@ -28,6 +28,7 @@ class CpuTimeDataModel(DataModel):
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
"""Constructor."""
|
"""Constructor."""
|
||||||
|
super().__init__()
|
||||||
self.times = pd.DataFrame(columns=[
|
self.times = pd.DataFrame(columns=[
|
||||||
'tid',
|
'tid',
|
||||||
'start_timestamp',
|
'start_timestamp',
|
||||||
|
|
|
@ -24,6 +24,7 @@ class ProfileDataModel(DataModel):
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
"""Constructor."""
|
"""Constructor."""
|
||||||
|
super().__init__()
|
||||||
self.times = pd.DataFrame(columns=[
|
self.times = pd.DataFrame(columns=[
|
||||||
'tid',
|
'tid',
|
||||||
'depth',
|
'depth',
|
||||||
|
|
|
@ -27,6 +27,8 @@ class RosDataModel(DataModel):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
|
"""Constructor."""
|
||||||
|
super().__init__()
|
||||||
# Objects (one-time events, usually when something is created)
|
# Objects (one-time events, usually when something is created)
|
||||||
self.contexts = pd.DataFrame(columns=['context_handle',
|
self.contexts = pd.DataFrame(columns=['context_handle',
|
||||||
'timestamp',
|
'timestamp',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue