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

savu.plugins.reshape.sum_dimension_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 SumDimensionTools.define_parameters() 0 2 1
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