Test Setup Failed
Push — master ( cdf983...92b8ea )
by Nicola
02:11 queued 17s
created

savu.plugins.reconstructions.projectors.forward_projector_gpu_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 ForwardProjectorGpuTools.define_parameters() 0 2 1
1
from savu.plugins.plugin_tools import PluginTools
2
3
class ForwardProjectorGpuTools(PluginTools):
4
    """This plugin uses ToMoBAR software and GPU Astra projector to generate parallel-beam projection data.
5
The plugin will project the given object using the available metadata OR user-provided geometry.
6
In case when angles set to None, the metadata projection geometry will be used.
7
    """
8
    def define_parameters(self):
9
        """
10
        angles_deg:
11
            visibility: advanced
12
            dtype: [None, list[float,float,int]]
13
            description: Projection angles in degrees in a format [start, stop, total number of angles].
14
            default: None
15
16
        det_horiz:
17
            visibility: advanced
18
            dtype: [None,int]
19
            description: The size of the horizontal detector.
20
            default: None
21
22
        centre_of_rotation:
23
            visibility: advanced
24
            dtype: [None,float]
25
            description: The centre of rotation.
26
            default: None
27
28
        out_datasets:
29
            visibility: datasets
30
            dtype: [list[],list[str]]
31
            description: The default names
32
            default: ['forw_proj']
33
        """
34