Skip to content

Commit 3aa3edf

Browse files
author
MERCIER Michael
committed
[docs] Add all modules in doc and remove warnings + doc Nix shell
1 parent 14d21cf commit 3aa3edf

File tree

7 files changed

+65
-25
lines changed

7 files changed

+65
-25
lines changed

docs/library_doc.rst

+24-3
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,38 @@ Workload: Handle Feitelson's SWF
1111
:members:
1212

1313

14-
JobSet: Handle Batsim output file
15-
---------------------------------
14+
Handle Batsim output files
15+
--------------------------
1616

1717
.. automodule:: evalys.jobset
1818
:members:
1919

20+
.. automodule:: evalys.pstates
21+
:members:
22+
23+
.. automodule:: evalys.mstates
24+
:members:
25+
2026

2127
Visualisation library
2228
---------------------
2329

24-
.. automodule:: evalys.visu
30+
.. automodule:: evalys.visu.gantt
31+
:members:
32+
33+
.. automodule:: evalys.visu.details
34+
:members:
35+
36+
.. automodule:: evalys.visu.lifecycle
37+
:members:
38+
39+
.. automodule:: evalys.visu.series
40+
:members:
41+
42+
.. automodule:: evalys.visu.core
43+
:members:
44+
45+
.. automodule:: evalys.visu.legacy
2546
:members:
2647

2748
Metrics computation

docs/shell.nix

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
let
2+
kapack = import (fetchTarball https://github.com/oar-team/kapack/archive/master.tar.gz) {};
3+
in
4+
5+
with kapack.pkgs;
6+
7+
mkShell rec {
8+
buildInputs = [
9+
python36Packages.sphinx
10+
python36Packages.sphinx_rtd_theme
11+
kapack.evalys4
12+
];
13+
shellHook = ''
14+
sphinx-build . build
15+
'';
16+
}

evalys/visu/core.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ class EvalysLayout:
4343
:ivar sps: The `SubplotSpec` defined in the layout.
4444
:vartype axes: dict
4545
46-
:ivar visualizations:
47-
Binding of the visualizations injected into the layout.
46+
:ivar visualizations: Binding of the visualizations injected into the layout.
4847
For each key `spskey` in `self.sps`, `self.visualizations[spskey]` is a
4948
list of the visualizations with root `SubplotSpec` `self.sps[spskey]`.
5049
:vartype visualizations: dict
@@ -75,11 +74,11 @@ def inject(self, visu_cls, spskey, *args, **kwargs):
7574
`Visualization` (or a subclass). This key must exist in
7675
`self.sps`.
7776
78-
:param *args:
77+
:param \*args:
7978
The positional arguments to be fed to the constructor of the
8079
visualization class.
8180
82-
:param **kwargs:
81+
:param \**kwargs:
8382
The keyword arguments to be fed to the constructor of the
8483
visualization class.
8584

evalys/visu/details.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def plot_details(jobset, *, title='Workload overview', **kwargs):
4343
:param title: The title of the window.
4444
:type title: str
4545
46-
:param **kwargs:
46+
:param \**kwargs:
4747
The keyword arguments to be fed to the constructors of the
4848
visualization classes.
4949
"""

evalys/visu/gantt.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ class GanttVisualization(core.Visualization):
3131
:ivar xscale:
3232
The requested adaptation of the x-axis scale.
3333
Valid values are `None`, and `'time'`.
34-
- It defaults to `None`, and uses raw values by default.
35-
- If set to `time`, the x-axis interprets the data as timestamps, and
34+
35+
* It defaults to `None`, and uses raw values by default.
36+
* If set to `time`, the x-axis interprets the data as timestamps, and
3637
uses a time-aware semantic.
3738
3839
:ivar alpha:
@@ -198,12 +199,12 @@ def plot_gantt(jobset, *, title='Gantt chart', **kwargs):
198199
Helper function to create a Gantt chart of a workload.
199200
200201
:param jobset: The jobset under study.
201-
:type jobset: `JobSet`
202+
:type jobset: ``JobSet``
202203
203204
:param title: The title of the window.
204-
:type title: str
205+
:type title: ``str``
205206
206-
:param **kwargs:
207+
:param \**kwargs:
207208
The keyword arguments to be fed to the constructor of the visualization
208209
class.
209210
"""
@@ -225,7 +226,7 @@ def plot_diff_gantt(jobsets, *, title='Gantt charts comparison', **kwargs):
225226
:param title: The title of the window.
226227
:type title: str
227228
228-
:param **kwargs:
229+
:param \**kwargs:
229230
The keyword arguments to be fed to the constructor of the visualization
230231
class.
231232
"""

evalys/visu/lifecycle.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,17 @@ class LifecycleVisualization(core.Visualization):
5454
:ivar xscale:
5555
The requested adaptation of the x-axis scale.
5656
Valid values are `None`, and `'time'`.
57-
- It defaults to `None`, and uses raw values by default.
58-
- If set to `time`, the x-axis interprets the data as timestamps, and
57+
58+
* It defaults to `None`, and uses raw values by default.
59+
* If set to `time`, the x-axis interprets the data as timestamps, and
5960
uses a time-aware semantic.
6061
6162
:ivar yscale:
6263
The requested adaptation of the y-axis scale.
6364
Valid values are `None`, and `'log2'`.
64-
- It defaults to `None`, and uses raw values by default.
65-
- If set to `log2`, the y-axis is transformed to show the values on a
65+
66+
* It defaults to `None`, and uses raw values by default.
67+
* If set to `log2`, the y-axis is transformed to show the values on a
6668
logarithmic scale in base 2.
6769
"""
6870

@@ -203,9 +205,9 @@ def plot_lifecycle(jobset, *, title='Jobs\' life cycle', **kwargs):
203205
:type jobset: `JobSet`
204206
205207
:param title: The title of the window.
206-
:type title: str
208+
:type title: `str`
207209
208-
:param **kwargs:
210+
:param \**kwargs:
209211
The keyword arguments to be fed to the constructor of the visualization
210212
class.
211213
"""

evalys/visu/series.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ class SeriesVisualization(core.Visualization):
2525
:ivar xscale:
2626
The requested adaptation of the x-axis scale.
2727
Valid values are `None`, and `'time'`.
28-
- It defaults to `None`, and uses raw values by default.
29-
- If set to `time`, the x-axis interprets the data as timestamps, and
28+
29+
* It defaults to `None`, and uses raw values by default.
30+
* If set to `time`, the x-axis interprets the data as timestamps, and
3031
uses a time-aware semantic.
3132
"""
3233
_metric = None
@@ -125,12 +126,12 @@ def plot_series(jobset, *, name, title='Time series plot', **kwargs):
125126
:type jobset: `JobSet`
126127
127128
:param name: Name of the requested series visualization.
128-
:type: str
129+
:type: `str`
129130
130131
:param title: The title of the window.
131-
:type title: str
132+
:type title: `str`
132133
133-
:param **kwargs:
134+
:param \**kwargs:
134135
The keyword arguments to be fed to the constructor of the visualization
135136
class.
136137
"""

0 commit comments

Comments
 (0)