Test Failed
Push — master ( 48c83a...0adefd )
by
unknown
01:35 queued 19s
created

savu.plugins.corrections.phase_unwrapping_tools   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A PhaseUnwrappingTools.citation() 0 2 1
A PhaseUnwrappingTools.define_parameters() 0 2 1
1
from savu.plugins.plugin_tools import PluginTools
2
3
class PhaseUnwrappingTools(PluginTools):
4
    """A plugin to unwrap a phase-image retrieved by another phase retrieval
5
    method (e.g. ptychography). Note that values of the input have to be
6
    in the range of [-pi; pi]"""
7
    
8
    def define_parameters(self):
9
        """
10
        n_iterations:
11
            visibility: basic
12
            dtype: int
13
            description: Number of iterations to perform.
14
            default: 4
15
16
        pattern:
17
            visibility: basic
18
            dtype: str
19
            description: Data processing pattern.
20
            options: [PROJECTION, SINOGRAM]
21
            default: PROJECTION
22
        """
23
24
    def citation(self):
25
        """
26
        The code is the implementation of the work taken from the following paper.
27
28
        bibtex:
29
            @article{Martinez-Carranza:17,
30
            author = {Juan Martinez-Carranza and Konstantinos Falaggis and Tomasz Kozacki},
31
            journal = {Appl. Opt.},
32
            number = {25},
33
            pages = {7079--7088},
34
            publisher = {OSA},
35
            title = {Fast and accurate phase-unwrapping algorithm based on the transport of intensity equation},
36
            volume = {56},
37
            month = {Sep},
38
            year = {2017},
39
            url = {http://www.osapublishing.org/ao/abstract.cfm?URI=ao-56-25-7079},
40
            doi = {10.1364/AO.56.007079}}
41
42
        endnote:
43
            TI  - Fast and accurate phase-unwrapping algorithm based on the transport of intensity equation
44
            AU  - Martinez-Carranza, Juan
45
            AU  - Falaggis, Konstantinos
46
            AU  - Kozacki, Tomasz
47
            PB  - OSA
48
            PY  - 2017
49
            JF  - Applied Optics
50
            VL  - 56
51
            IS  - 25
52
            SP  - 7079
53
            EP  - 7088
54
            UR  - http://www.osapublishing.org/ao/abstract.cfm?URI=ao-56-25-7079
55
            DO  - 10.1364/AO.56.007079
56
57
        doi: 10.1364/AO.56.007079
58
        """
59