Skip to content

Commit 047f951

Browse files
committed
renaming generator to wfgen
1 parent 421c416 commit 047f951

9 files changed

Lines changed: 196 additions & 151 deletions

docs/source/dev_api_generator.rst

Lines changed: 0 additions & 115 deletions
This file was deleted.

docs/source/dev_api_reference.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ Python package.
1414
:maxdepth: 1
1515

1616
dev_api_wfcommons.rst
17-
dev_api_generator.rst
1817
dev_api_trace.rst
18+
dev_api_wfchef.rst
19+
dev_api_wfgen.rst

docs/source/dev_api_wfchef.rst

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
wfcommons.wfchef
2+
================
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
wfcommons.wfchef.chef
8+
---------------------
9+
10+
.. automodule:: wfcommons.wfchef.chef
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
:private-members:
15+
:noindex:
16+
17+
wfcommons.wfchef.duplicate
18+
--------------------------
19+
20+
.. automodule:: wfcommons.wfchef.duplicate
21+
:members:
22+
:undoc-members:
23+
:show-inheritance:
24+
:private-members:
25+
:noindex:
26+
27+
wfcommons.wfchef.find_microstructures
28+
-------------------------------------
29+
30+
.. automodule:: wfcommons.wfchef.find_microstructures
31+
:members:
32+
:undoc-members:
33+
:show-inheritance:
34+
:private-members:
35+
:noindex:
36+
37+
wfcommons.wfchef.utils
38+
----------------------
39+
40+
.. automodule:: wfcommons.wfchef.utils
41+
:members:
42+
:undoc-members:
43+
:show-inheritance:
44+
:private-members:
45+
:noindex:
46+
47+
wfcommons.wfchef.skeletons.recipe
48+
---------------------------------
49+
50+
.. automodule:: wfcommons.wfchef.skeletons.recipe
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:
54+
:private-members:
55+
:noindex:

docs/source/dev_api_wfgen.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
wfcommons.wfgen
2+
===============
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
wfcommons.wfgen.generator
8+
-------------------------
9+
10+
.. automodule:: wfcommons.wfgen.generator
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
:private-members:
15+
:noindex:
16+
17+
wfcommons.wfgen.abstract\_recipe
18+
--------------------------------
19+
20+
.. automodule:: wfcommons.wfgen.abstract_recipe
21+
:members:
22+
:undoc-members:
23+
:show-inheritance:
24+
:private-members:
25+
:noindex:

docs/source/generating_workflows.rst

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Generating Workflows
55

66
WfGen is a component of WfCommons project that targets the generation of realistic
77
synthetic workflow instances with a variety of characteristics. The
8-
:class:`~wfcommons.generator.generator.WorkflowGenerator` class uses recipes
8+
:class:`~wfcommons.wfgen.generator.WorkflowGenerator` class uses recipes
99
of workflows (as described in :ref:`workflow-recipe-generator-label`)
1010
for creating the realistic synthetic instances. The resulting workflows are represented in the
1111
:ref:`json-format-label`, which is already supported by simulation frameworks such as
@@ -19,29 +19,28 @@ WfCommons Workflows Recipes
1919
This Python package provides several *workflow recipes* for generating realistic
2020
synthetic workflow instances. The current list of available workflow recipes include:
2121

22-
- :class:`~wfcommons.wfchef.recipes.blast_recipe.BlastRecipe`: :code:`from wfcommons.wfchef.recipes import BlastWorkflowRecipe`
23-
- :class:`~wfcommons.wfchef.recipes.bwa_recipe.BwaRecipe`: :code:`from wfcommons.wfchef.recipes import BwaRecipe`
24-
- :class:`~wfcommons.wfchef.recipes.cycles_recipe.CyclesRecipe`: :code:`from wfcommons.wfchef.recipes import CyclesRecipe`
25-
- :class:`~wfcommons.wfchef.recipes.epigenomics_recipe.EpigenomicsRecipe`: :code:`from wfcommons.wfchef.recipes import EpigenomicsRecipe`
26-
- :class:`~wfcommons.wfchef.recipes.genome_recipe.GenomeRecipe`: :code:`from wfcommons.wfchef.recipes import GenomeRecipe`
27-
- :class:`~wfcommons.wfchef.recipes.montage_recipe.MontageRecipe`: :code:`from wfcommons.wfchef.recipes import MontageRecipe`
28-
- :class:`~wfcommons.wfchef.recipes.seismology_recipe.SeismologyRecipe`: :code:`from wfcommons.wfchef.recipes import SeismologyRecipe`
29-
- :class:`~wfcommons.wfchef.recipes.soykb_recipe.SoykbRecipe`: :code:`from wfcommons.wfchef.recipes import SoykbRecipe`
30-
- :class:`~wfcommons.wfchef.recipes.srasearch_recipe.SrasearchRecipe`: :code:`from wfcommons.wfchef.recipes import SrasearchRecipe`
31-
22+
- :class:`~wfcommons.wfchef.recipes.blast.recipe.BlastRecipe`: :code:`from wfcommons.wfchef.recipes import BlastRecipe`
23+
- :class:`~wfcommons.wfchef.recipes.bwa.recipe.BwaRecipe`: :code:`from wfcommons.wfchef.recipes import BwaRecipe`
24+
- :class:`~wfcommons.wfchef.recipes.cycles.recipe.CyclesRecipe`: :code:`from wfcommons.wfchef.recipes import CyclesRecipe`
25+
- :class:`~wfcommons.wfchef.recipes.epigenomics.recipe.EpigenomicsRecipe`: :code:`from wfcommons.wfchef.recipes import EpigenomicsRecipe`
26+
- :class:`~wfcommons.wfchef.recipes.genome.recipe.GenomeRecipe`: :code:`from wfcommons.wfchef.recipes import GenomeRecipe`
27+
- :class:`~wfcommons.wfchef.recipes.montage.recipe.MontageRecipe`: :code:`from wfcommons.wfchef.recipes import MontageRecipe`
28+
- :class:`~wfcommons.wfchef.recipes.seismology.recipe.SeismologyRecipe`: :code:`from wfcommons.wfchef.recipes import SeismologyRecipe`
29+
- :class:`~wfcommons.wfchef.recipes.soykb.recipe.SoykbRecipe`: :code:`from wfcommons.wfchef.recipes import SoykbRecipe`
30+
- :class:`~wfcommons.wfchef.recipes.srasearch.recipe.SrasearchRecipe`: :code:`from wfcommons.wfchef.recipes import SrasearchRecipe`
3231

3332
The Workflow Instances Generator
3433
--------------------------------
3534

3635
Synthetic workflow instances are generated using the
37-
:class:`~wfcommons.generator.generator.WorkflowGenerator` class. This class takes
38-
as input a :class:`~wfcommons.generator.workflow.abstract_recipe.WorkflowRecipe`
36+
:class:`~wfcommons.wfgen.generator.WorkflowGenerator` class. This class takes
37+
as input a :class:`~wfcommons.wfgen.abstract_recipe.WorkflowRecipe`
3938
object (see in :ref:`workflow-recipe-generator-label`), and provides two methods
4039
for generating synthetic workflow instances:
4140

42-
- :meth:`~wfcommons.generator.generator.WorkflowGenerator.build_workflow`: generates a single synthetic workflow
41+
- :meth:`~wfcommons.wfgen.generator.WorkflowGenerator.build_workflow`: generates a single synthetic workflow
4342
instance based on the workflow recipe used to instantiate the generator.
44-
- :meth:`~wfcommons.generator.generator.WorkflowGenerator.build_workflows`: generates a number of synthetic workflow
43+
- :meth:`~wfcommons.wfgen.generator.WorkflowGenerator.build_workflows`: generates a number of synthetic workflow
4544
instances based on the workflow recipe used to instantiate the generator.
4645

4746
The build methods use the workflow recipe for generating realistic synthetic
@@ -88,7 +87,7 @@ os 300 tasks, builds a synthetic workflow instance, and writes the
8887
synthetic instance to a JSON file. ::
8988

9089
from wfcommons.wfchef.recipes import SeismologyRecipe
91-
from wfcommons.generator import WorkflowGenerator
90+
from wfcommons.wfgen import WorkflowGenerator
9291

9392
generator = WorkflowGenerator(SeismologyRecipe.from_num_tasks(250))
9493
workflow = generator.build_workflow()
@@ -99,7 +98,7 @@ The example below generates a number of 10 *Blast* synthetic
9998
workflow instances for every size defined in the array :code:`num_tasks`: ::
10099

101100
from wfcommons.wfchef.recipes import BlastRecipe
102-
from wfcommons.generator import WorkflowGenerator
101+
from wfcommons.wfgen import WorkflowGenerator
103102

104103
num_tasks = [100, 250, 370, 800]
105104
@@ -115,7 +114,7 @@ based on the number of tasks entered by the user (1000), builds the synthetic
115114
workflow instances, and writes the synthetic instances to JSON files. ::
116115

117116
from wfcommons.wfchef.recipes import EpigenomicsRecipe
118-
from wfcommons.generator import WorkflowGenerator
117+
from wfcommons.wfgen import WorkflowGenerator
119118

120119
generator = WorkflowGenerator(EpigenomicsRecipe.from_num_tasks(1000))
121120
for i, workflow in enumerate(generator.build_workflows(10)):
@@ -126,7 +125,7 @@ based on the number of tasks entered by the user (250), builds the synthetic wor
126125
instance, and writes the synthetic instance to a JSON file. ::
127126

128127
from wfcommons.wfchef.recipes import CyclesRecipe
129-
from wfcommons.generator import WorkflowGenerator
128+
from wfcommons.wfgen import WorkflowGenerator
130129

131130
generator = WorkflowGenerator(CyclesRecipe.from_num_tasks(250))
132131
workflow = generator.build_workflow()

docs/source/user_api_generator.rst

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/source/user_api_reference.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ Python package. Users are NOT expected to develop new
1313

1414
user_api_common.rst
1515
user_api_trace.rst
16-
user_api_generator.rst
16+
user_api_wfchef.rst
17+
user_api_wfgen.rst

docs/source/user_api_wfchef.rst

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
.. _wfcommons-wfchef-label:
2+
3+
wfcommons.wfchef
4+
================
5+
6+
.. toctree::
7+
:maxdepth: 4
8+
9+
wfcommons.wfchef.recipes.blast.recipe
10+
-------------------------------------
11+
12+
.. automodule:: wfcommons.wfchef.recipes.blast.recipe
13+
:members:
14+
:undoc-members:
15+
:show-inheritance:
16+
17+
wfcommons.wfchef.recipes.bwa.recipe
18+
-----------------------------------
19+
20+
.. automodule:: wfcommons.wfchef.recipes.bwa.recipe
21+
:members:
22+
:undoc-members:
23+
:show-inheritance:
24+
25+
wfcommons.wfchef.recipes.cycles.recipe
26+
--------------------------------------
27+
28+
.. automodule:: wfcommons.wfchef.recipes.cycles.recipe
29+
:members:
30+
:undoc-members:
31+
:show-inheritance:
32+
33+
wfcommons.wfchef.recipes.epigenomics.recipe
34+
-------------------------------------------
35+
36+
.. automodule:: wfcommons.wfchef.recipes.epigenomics.recipe
37+
:members:
38+
:undoc-members:
39+
:show-inheritance:
40+
41+
wfcommons.wfchef.recipes.genome.recipe
42+
--------------------------------------
43+
44+
.. automodule:: wfcommons.wfchef.recipes.genome.recipe
45+
:members:
46+
:undoc-members:
47+
:show-inheritance:
48+
49+
wfcommons.wfchef.recipes.montage.recipe
50+
---------------------------------------
51+
52+
.. automodule:: wfcommons.wfchef.recipes.montage.recipe
53+
:members:
54+
:undoc-members:
55+
:show-inheritance:
56+
57+
wfcommons.wfchef.recipes.seismology.recipe
58+
------------------------------------------
59+
60+
.. automodule:: wfcommons.wfchef.recipes.seismology.recipe
61+
:members:
62+
:undoc-members:
63+
:show-inheritance:
64+
65+
wfcommons.wfchef.recipes.soykb.recipe
66+
-------------------------------------
67+
68+
.. automodule:: wfcommons.wfchef.recipes.soykb.recipe
69+
:members:
70+
:undoc-members:
71+
:show-inheritance:
72+
73+
wfcommons.wfchef.recipes.srasearch.recipe
74+
-----------------------------------------
75+
76+
.. automodule:: wfcommons.wfchef.recipes.srasearch.recipe
77+
:members:
78+
:undoc-members:
79+
:show-inheritance:

0 commit comments

Comments
 (0)