| Total Complexity | 0 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 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 |