Passed
Pull Request — master (#1)
by Konstantinos
01:11
created

artificial_artwork.algorithm   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 13
dl 0
loc 21
rs 10
c 0
b 0
f 0
1
import attr
2
3
from .style_layer_selector import NSTLayersSelection
4
5
6
@attr.s
7
class NSTAlgorithm:
8
    parameters = attr.ib()
9
10
11
@attr.s
12
class AlogirthmParameters:
13
    # TODO remove content and style images and output_path
14
    # retain only algorithm parameters (variables governing how the algo will behave)
15
    # from the algo input (runtime objects that are the INPUT to the algo)
16
    content_image = attr.ib()
17
    style_image = attr.ib()
18
    style_layers = attr.ib(converter=NSTLayersSelection.from_tuples)
19
    termination_condition = attr.ib()
20
    output_path = attr.ib()
21