Test Failed
Pull Request — master (#934)
by
unknown
04:09
created

Rotate90Tools.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 Rotate90Tools(PluginTools):
4
    """A plugin to rotate an image 90 degrees clockwise or anticlockwise."""
5
    
6
    def define_parameters(self):
7
        """
8
        direction:
9
            visibility: basic
10
            dtype: str
11
            description: Direction for the 90 degree rotation. CW (clockwise) or ACW (anti-clockwise)
12
            default: ACW
13
            options: [ACW, CW]
14
15
        pattern:
16
             visibility: intermediate
17
             dtype: str
18
             options: [PROJECTION, SINOGRAM, VOLUME_XZ]
19
             description: Pattern to apply this to.
20
             default: PROJECTION
21
22
        """
23