Skip to content

Commit

Permalink
minor issues in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mo authored and Mo committed Apr 2, 2024
1 parent 17e48c6 commit f2fff47
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/evaluation_system/api/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ class MyPlugin(plugin.PluginAbstract):
parameters.SelectField(
name="options",
default="first",
options={1: "first", 2: "second"}
options={1: "first", 2: "second"},
help="Select from options",
),
)
Expand Down
15 changes: 9 additions & 6 deletions src/evaluation_system/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,28 +111,31 @@ class MyPlugin(plugin.PluginAbstract):
__parameters__ = parameters.ParameterDictionary(
parameters.Integer(
name="count",
default=1,
default=5,
help=("This is an optional configurable "
"int variable named number without "
"default value and this description")
),
parameters.Float(
name="number",
default=6.4,
mandatory=True,
help="Required float value without default"
),
parameters.Bool(
name="overwrite",
default=False,
default=True,
help=("a boolean parameter "
"with default value of false")
),
parameters.String(name='str')
parameters.String(
name='name',
default='Test',)
)
def run_tool(
self, config_dict: dict[str, str|int|bool]
) -> None:
'''Definition of the tool the is running the cli.
'''Definition of the tool that runs the cli.
Parameters:
-----------
Expand All @@ -143,7 +146,7 @@ def run_tool(
self.call(
(
f"cli/calculate -c {config_dict['count']} "
f"-n {config_dict['number']} --name={config_dict['name']}
f"-n {config_dict['number']} --name={config_dict['name']}"
)
)
print("MyPlugin was run with", config_dict)
Expand All @@ -163,7 +166,7 @@ def run_tool(
``/mnt/freva/plugins/my_plugin/plugin_module.py``), you would tell the system
how to find the plugin by issuing the following command (bash & co)::
export EVALUATION_SYSTEM_PLUGINS=/mnt/freva/plugins/my_plugin,plugin
export EVALUATION_SYSTEM_PLUGINS=/mnt/freva/plugins/my_plugin,plugin_module
Use a colon to separate multiple items::
Expand Down

0 comments on commit f2fff47

Please sign in to comment.