Test Failed
Pull Request — master (#806)
by Nicola
03:35
created

SumDimensionTools.define_parameters()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
from savu.plugins.plugin_tools import PluginTools
2
3
class SumDimensionTools(PluginTools):
4
    """
5
    Sum over a dimension of the data.
6
    """
7
8
    def define_parameters(self):
9
        """
10
        pattern:
11
            visibility: basic
12
            dtype: [str, None]
13
            description: How to slice the data passed to the plugin
14
            default: None
15
        axis_label:
16
            visibility: basic
17
            dtype: [str, None]
18
            description: Axis label name assigned to the dimension to sum.
19
            default: None
20
        """
21