|
34 | 34 | logger = logging.getLogger(__name__) |
35 | 35 |
|
36 | 36 |
|
37 | | -class Nayatani95(): |
| 37 | +class Nayatani95(object): |
38 | 38 | """ |
39 | 39 | **References** |
40 | 40 |
|
@@ -226,7 +226,7 @@ def xyz_to_rgb(cls, xyz): |
226 | 226 | return cls.xyz_to_rgb_m.dot(xyz) |
227 | 227 |
|
228 | 228 |
|
229 | | -class Hunt(): |
| 229 | +class Hunt(object): |
230 | 230 | """ |
231 | 231 | **References** |
232 | 232 |
|
@@ -625,7 +625,7 @@ def _calculate_eccentricity_factor(hue_angle): |
625 | 625 | return out |
626 | 626 |
|
627 | 627 |
|
628 | | -class RLAB(): |
| 628 | +class RLAB(object): |
629 | 629 | """ |
630 | 630 | **References** |
631 | 631 |
|
@@ -717,9 +717,10 @@ def __init__(self, x, y, z, x_n, y_n, z_n, y_n_abs, sigma, d): |
717 | 717 | logger.debug('A: {}'.format(a)) |
718 | 718 | xyz_ref = self.R.dot(a).dot(Hunt.xyz_to_rgb_m).dot(xyz) |
719 | 719 | else: |
720 | | - # So we have an array. Since constructing huge multidimensional arrays might not bee the best idea, |
721 | | - # we will handle each input dimension separately. |
722 | | - # First figure out how many values we have to deal with. |
| 720 | + # So we have an array. Since constructing huge multidimensional |
| 721 | + # arrays might not bee the best idea, we will handle each input |
| 722 | + # dimension separately. First figure out how many values we have to |
| 723 | + # deal with. |
723 | 724 | input_dim = len(x) |
724 | 725 | # No create the ouput array that we will fill layer by layer |
725 | 726 | xyz_ref = numpy.zeros((3, input_dim)) |
@@ -751,7 +752,7 @@ def __init__(self, x, y, z, x_n, y_n, z_n, y_n_abs, sigma, d): |
751 | 752 | self._saturation = self.chroma / self.lightness |
752 | 753 |
|
753 | 754 |
|
754 | | -class ATD95(): |
| 755 | +class ATD95(object): |
755 | 756 | """ |
756 | 757 | **References** |
757 | 758 |
|
@@ -850,7 +851,7 @@ def _xyz_to_lms(xyz): |
850 | 851 | return numpy.array([l, m, s]) |
851 | 852 |
|
852 | 853 |
|
853 | | -class LLAB(): |
| 854 | +class LLAB(object): |
854 | 855 | """ |
855 | 856 | **References** |
856 | 857 |
|
@@ -992,7 +993,7 @@ def xyz_to_rgb(cls, xyz): |
992 | 993 | return cls.xyz_to_rgb_m.dot(xyz / xyz[1]) |
993 | 994 |
|
994 | 995 |
|
995 | | -class CIECAM02(): |
| 996 | +class CIECAM02(object): |
996 | 997 | """ |
997 | 998 | **References** |
998 | 999 |
|
@@ -1216,7 +1217,6 @@ class CIECAM02m1(CIECAM02): |
1216 | 1217 | * Wu, R. C., & Wardman, R. H. (2007). Proposed modification to the CIECAM02 colour appearance model to include the |
1217 | 1218 | simultaneous contrast effects. *Color Research & Application*, 32(2), 121-129. |
1218 | 1219 | """ |
1219 | | - |
1220 | 1220 | def __init__(self, x, y, z, x_w, y_w, z_w, x_b, y_b, z_b, l_a, c, n_c, f, p, d=False): |
1221 | 1221 | """ |
1222 | 1222 | :param x: X value of test sample :math:`X`. |
|
0 commit comments