Test Failed
Pull Request — master (#830)
by Daniil
04:54
created

dezinger_deprecated_tools   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A DezingerDeprecatedTools.define_parameters() 0 2 1
1
from savu.plugins.plugin_tools import PluginTools
2
3
class DezingerDeprecatedTools(PluginTools):
4
    """A plugin for cleaning x-ray strikes based on statistical evaluation of
5
the near neighbourhood
6
    """
7
    def define_parameters(self):
8
        """
9
        outlier_mu:
10
              visibility: basic
11
              dtype: float
12
              description: Threshold for defecting outliers, greater is less
13
                sensitive.
14
              default: 10.0
15
        kernel_size:
16
              visibility: basic
17
              dtype: int
18
              description: Number of frames included in average.
19
              default: 5
20
        mode:
21
              visibility: intermediate
22
              dtype: int
23
              description: 'output mode, 0=normal 5=zinger strength 6=zinger
24
                yes/no.'
25
              default: 0
26
27
        """
28