aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKapileshwar Singh <kapileshwar.singh@arm.com>2015-09-09 14:51:38 +0100
committerJavi Merino <javi.merino@arm.com>2015-09-17 16:09:19 +0100
commit85fc05f116857de12b43ca78bfccdbc8e7ad03d1 (patch)
tree6f75b63151643b9c8a73b7c325abe4c85ad420c0
parent95985b5125b3e96b8cd87460cc375600a8de49ea (diff)
downloadtrappy-85fc05f116857de12b43ca78bfccdbc8e7ad03d1.tar.gz
doc: pid_controller: Use sphinx friendly docstrings
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
-rw-r--r--trappy/pid_controller.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/trappy/pid_controller.py b/trappy/pid_controller.py
index 9aa438c..bcaacd4 100644
--- a/trappy/pid_controller.py
+++ b/trappy/pid_controller.py
@@ -21,10 +21,14 @@ from trappy.run import Run
from trappy.plot_utils import normalize_title, pre_plot_setup, post_plot_setup
class PIDController(Base):
- """Process the power allocator PID controller data in a ftrace dump"""
+ """Process the power allocator PID controller data in a FTrace dump"""
name = "pid_controller"
+ """The name of the :mod:`pandas.DataFrame` member that will be created in a
+ :mod:`trappy.run.Run` object"""
+
pivot = "thermal_zone_id"
+ """The Pivot along which the data is orthogonal"""
def __init__(self):
super(PIDController, self).__init__(
@@ -32,7 +36,20 @@ class PIDController(Base):
)
def plot_controller(self, title="", width=None, height=None, ax=None):
- """Plot a summary of the controller data"""
+ """Plot a summary of the controller data
+
+ :param ax: Axis instance
+ :type ax: :mod:`matplotlib.Axis`
+
+ :param title: The title of the plot
+ :type title: str
+
+ :param width: The width of the plot
+ :type width: int
+
+ :param height: The height of the plot
+ :type int: int
+ """
title = normalize_title("PID", title)
if not ax: