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

artificial_artwork.image.image   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 7
dl 0
loc 17
rs 10
c 0
b 0
f 0
1
import attr
2
from numpy.typing import NDArray
3
4
5
@attr.s
6
class Image:
7
    """An image loaded into memory, represented as a multidimension mathematical matrix/array.
8
    
9
    The 'file_path' attribute indicates a file in the disk that corresponds to the matrix
10
11
    Args:
12
        file_path (str): 
13
        matrix (NDArray): 
14
    """
15
    file_path: str = attr.ib()
16
    matrix: NDArray = attr.ib(default=None)
17