ColorPy icon indicating copy to clipboard operation
ColorPy copied to clipboard

Physical color calculations in Python.

Results 6 ColorPy issues
Sort by recently updated
recently updated
newest added

Hi, When I import `colorpy.colormodels` on my python 3.9.7 kernel, I get the following error: > ModuleNotFoundError Traceback (most recent call last) /script/run.ipynb Cell 3 in () ----> [1](vscode-notebook-cell:/script/run.ipynb#W2sZmlsZQ%3D%3D?line=0) import...

The index used in ciexyz.xyz_from_wavelength() is intended to be an integer, but is actually a floating point type with an integral value. It should be explicitly converted to an integer...

All files now use `from __future__ import absolute_import`, and the [Python 3 absolute vs relative import syntax](https://www.python.org/dev/peps/pep-0328/). After this change, `colorpy.test.test()` shows all tests passing in both Python 2.7 and...

Some functions already work with numpy args (e.g., `xyz_from_rgb`) but others use functions or constructs that are not numpy aware (e.g., `rgb_from_irgb` uses `float()` and `lab_from_xyz` uses scalar '>'). This...

It would be useful to be able to convert between two different RGB color spaces, but it looks like this isn't currently possible since the `colormodels.init()` function uses globals so...

Please check thoroughly, especially if the range and raise are ported properly.