diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-05-01 21:21:07 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-05-01 21:21:07 -0400 |
| commit | 05daffb7e01db55879eb24f3c00532324a5d41af (patch) | |
| tree | 43ff5d954e035e0e8b5a507b9c1bf9d6b4d3338d /lib/threads | |
| parent | 1b31806423c8fec4040fed6d1009db016860b763 (diff) | |
refactor everything out of lib/__init__.py
Diffstat (limited to 'lib/threads')
| -rw-r--r-- | lib/threads/catalog.py | 2 | ||||
| -rw-r--r-- | lib/threads/palette.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/threads/catalog.py b/lib/threads/catalog.py index cebae4ff..d9981dc6 100644 --- a/lib/threads/catalog.py +++ b/lib/threads/catalog.py @@ -3,8 +3,10 @@ from os.path import dirname, realpath import sys from glob import glob from collections import Sequence + from .palette import ThreadPalette + class _ThreadCatalog(Sequence): """Holds a set of ThreadPalettes.""" diff --git a/lib/threads/palette.py b/lib/threads/palette.py index e1f47c7f..785fb082 100644 --- a/lib/threads/palette.py +++ b/lib/threads/palette.py @@ -1,9 +1,10 @@ from collections import Set -from .color import ThreadColor from colormath.color_objects import sRGBColor, LabColor from colormath.color_conversions import convert_color from colormath.color_diff import delta_e_cie1994 +from .color import ThreadColor + def compare_thread_colors(color1, color2): # K_L=2 indicates textiles |
