From 552877042007a18128db4313e35221a8faf1b5c0 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 11 Jun 2020 12:10:21 +0200 Subject: Refactoring; use primed c's everywhere --- test_example.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test_example.py') diff --git a/test_example.py b/test_example.py index 412cece..f497bbf 100644 --- a/test_example.py +++ b/test_example.py @@ -3,7 +3,7 @@ from colour import * from colour.plotting import * from colour.difference import * from matplotlib import pyplot as plt -from jakob_hanika import jakob_hanika, model, remap, wvl +from jakob_hanika import jakob_hanika, model_sd from test_colorchecker import plot_comparison @@ -23,12 +23,13 @@ if __name__ == "__main__": target = XYZ_to_Lab(XYZ, ill_xy) print("Target: X=%g, Y=%g, Z=%g, L=%g, a=%g, b=%g" % (*XYZ, *target)) - cc, found_sd, error = jakob_hanika(target, ill_sd, ill_xy) + ccp, error = jakob_hanika(target, ill_sd, ill_xy) - reference_sd = SpectralDistribution(model(remap(wvl), cc_ref), wvl) + reference_sd = model_sd(cc_ref) reference_XYZ = sd_to_XYZ(reference_sd, illuminant=ill_sd) reference_Lab = XYZ_to_Lab(reference_XYZ, ill_xy) + found_sd = model_sd(ccp) found_XYZ = sd_to_XYZ(found_sd, illuminant=ill_sd) found_Lab = XYZ_to_Lab(found_XYZ, ill_xy) -- cgit