diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-06-21 18:41:07 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-06-21 18:41:07 +0200 |
commit | 33278ad88f8290054aa2b421182019b9167f50ff (patch) | |
tree | d0fcab7a586f12722df829ae23e3489486715025 /test_divergence.py | |
parent | ad2215aec514e3e7499b796945d554c51b55a019 (diff) |
Move the solver to Colour and update all tests
Diffstat (limited to 'test_divergence.py')
-rw-r--r-- | test_divergence.py | 9 |
1 files changed, 9 insertions, 0 deletions
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) |