diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-06-21 15:10:07 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-06-21 15:10:07 +0200 |
commit | ad2215aec514e3e7499b796945d554c51b55a019 (patch) | |
tree | f0ac8e9a49e81da306a2f3d260e728253bf6b88e | |
parent | 1934d1ce12200e26e9e76da9cd77b4593bc0a0c2 (diff) |
Update the code to work with the latest feature/jakob2019
-rw-r--r-- | test_integration.py | 4 | ||||
-rw-r--r-- | test_interpolator.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test_integration.py b/test_integration.py index e6aa819..d1b564f 100644 --- a/test_integration.py +++ b/test_integration.py @@ -14,7 +14,7 @@ if __name__ == "__main__": sd = XYZ_to_sd(XYZ, method="Jakob 2019", verbose=True) interp = Jakob2019Interpolator() - interp.read_file("data/srgb.coeff") - sdi = interp(RGB) + interp.from_file("data/srgb.coeff") + sdi = interp.RGB_to_sd(RGB) plot_multi_sds([sd, sdi]) diff --git a/test_interpolator.py b/test_interpolator.py index 21a50c5..e4d2919 100644 --- a/test_interpolator.py +++ b/test_interpolator.py @@ -9,10 +9,10 @@ from gsoc_common import D65, D65_xy, jakob_hanika, model_sd, plot_comparison # inputs. if __name__ == "__main__": interp = Jakob2019Interpolator() - interp.read_file("data/srgb.coeff") + interp.from_file("data/srgb.coeff") RGBs = np.random.random((7, 6, 5, 4, 3)) - ccs = interp.coeffs(RGBs) + ccs = interp.coefficients(RGBs) RGB = eotf_inverse_sRGB(RGBs[0, 0, 0, 0, :]) XYZ = sRGB_to_XYZ(RGB) |