From 33278ad88f8290054aa2b421182019b9167f50ff Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 21 Jun 2020 18:41:07 +0200 Subject: Move the solver to Colour and update all tests --- test_divergence.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test_divergence.py (limited to 'test_divergence.py') diff --git a/test_divergence.py b/test_divergence.py new file mode 100644 index 0000000..fc7956c --- /dev/null +++ b/test_divergence.py @@ -0,0 +1,9 @@ +import numpy as np +from colour import * +from colour.recovery import XYZ_to_sd_Jakob2019 +from gsoc_common import D65, plot_comparison + +if __name__ == "__main__": + XYZ = np.array([0.1788, 0.3576, 0.0596]) + found_sd, error = XYZ_to_sd_Jakob2019(XYZ, return_error=True) + plot_comparison(XYZ, found_sd, "Target", error, D65) -- cgit