Passed
Push — master ( 84bec4...a08110 )
by Konstantin
04:15 queued 01:47
created

set_Border   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A set_Border() 0 9 1
1
def set_Border(self, Border):
2
    """
3
    Set coordinate polygon by given object.
4
    Moreover, invalidate self's AlternativeImages
5
    (because they will have been cropped with a bbox
6
     of the previous polygon).
7
    """
8
    self.invalidate_AlternativeImage(feature_selector='cropped')
9
    self.Border = Border
10