Passed
Pull Request — master (#1)
by Konstantinos
59s
created

artificial_artwork.algorithm.LearningAlgorithm.run()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 3
dl 0
loc 2
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