Test Failed
Push — master ( c59863...d66c77 )
by Daniil
06:49 queued 03:06
created

savu.plugins.loaders.full_field_loaders.tomo_phantom_loader_tools   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A TomoPhantomLoaderTools.define_parameters() 0 2 1
1
from savu.plugins.plugin_tools import PluginTools
2
3
class TomoPhantomLoaderTools(PluginTools):
4
    """A hdf5 dataset of a specified size is created at runtime using Tomophantom
5
    to generate synthetic data , saved with relevant meta_data to a NeXus
6
    file, and used as input. It recreates the behaviour of the nxtomo loader
7
    but with synthetic data.  The input file path passed to Savu will be ignored
8
    (use a dummy).
9
    """
10
    def define_parameters(self):
11
        """
12
        axis_labels:
13
            visibility: basic
14
            dtype: list[str]
15
            description: A list of axis labels.
16
            default: "['rotation_angle.degrees', 'detector_y.pixels', 'detector_x.pixels']"
17
        axis_labels_phantom:
18
            visibility: hidden
19
            dtype: list[str]
20
            description: A list of axis labels.
21
            default: "['detector_z.pixels', 'detector_y.pixels', 'detector_x.pixels']"
22
        patterns:
23
            visibility: hidden
24
            dtype: list[str]
25
            description: Patterns.
26
            default: "['SINOGRAM.0c.1s.2c', 'PROJECTION.0s.1c.2c']"
27
        patterns_tomo:
28
            visibility: hidden
29
            dtype: list[str]
30
            description: Patterns.
31
            default: "['VOLUME_XZ.0c.1s.2c']"
32
        out_datasets:
33
            visibility: basic
34
            dtype: list[str]
35
            description: The names assigned to the datasets.
36
            default: "['synth_proj_data', 'phantom']"
37
        """
38