Test Failed
Pull Request — master (#875)
by Daniil
03:45
created

savu.plugins.alignment.projection_2d_alignment_tools   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A Projection2dAlignmentTools.define_parameters() 0 2 1
1
from savu.plugins.plugin_tools import PluginTools
2
3
4
class Projection2dAlignmentTools(PluginTools):
5
    """A plugin to calculate horizontal-vertical shift vectors for fixing misaligned projection data
6
       by comparing with the re-projected data
7
    """
8
9
    def define_parameters(self):
10
        """
11
        upsample_factor:
12
              visibility: advanced
13
              dtype: int
14
              description: The upsampling factor. Registration accuracy is inversely propotional to upsample_factor.
15
              default: 10
16
17
        in_datasets:
18
              visibility: datasets
19
              dtype: [list[],list[str]]
20
              description: Default input dataset names.
21
              default: []
22
23
        out_datasets:
24
              visibility: datasets
25
              dtype: [list[],list[str]]
26
              description: Default out dataset names.
27
              default: ['shifts']
28
        """
29