Skip to content

Commit 27f692d

Browse files
committed
minor fix
1 parent f8bd274 commit 27f692d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

materialyoucolor/hct/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .hct import Hct

materialyoucolor/utils/platform_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def logger(message):
282282
):
283283
timer_start = default_timer()
284284
pixel_len = image.width * image.height
285-
image_data = image.getdata()
285+
image_data = image.get_flattened_data()
286286
# TODO: Think about getting data from bitmap
287287
pixel_array = [
288288
image_data[_]

tests/test_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def get_current_rss_mb():
9191
start = default_timer()
9292
image = Image.open(args.image)
9393
pixel_len = image.width * image.height
94-
image_data = image.getdata()
94+
image_data = image.get_flattened_data()
9595
colors = QuantizeCelebi(
9696
[image_data[i] for i in range(0, pixel_len, args.quality)], MAX_COLOR
9797
)

0 commit comments

Comments
 (0)