Test Failed
Pull Request — master (#797)
by
unknown
03:47
created

plugin_examples.plugin_templates.general.plugin_template7_tools   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A PluginTemplate7Tools.define_parameters() 0 2 1
1
from savu.plugins.plugin_tools import PluginTools
2
3
class PluginTemplate7Tools(PluginTools):
4
    """
5
    A plugin template that increases the data dimensions.
6
    """
7
8
    def define_parameters(self):
9
        """
10
        pattern:
11
            visibility: basic
12
            dtype: str
13
            description: How to slice the data
14
            default: PROJECTION
15
        axis_len:
16
            visibility: basic
17
            dtype: int
18
            description: Length of the new dimension
19
            default: 10
20
        axis_label:
21
            visibility: basic
22
            dtype: str
23
            description: Axis label for the new axis
24
            default: scan
25
        axis_unit:
26
            visibility: basic
27
            dtype: str
28
            description: Axis unit for the new axis
29
            default: number
30
        """