Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit f1c90b2

Browse files
committed
Fix various data casts.
1 parent 71d273b commit f1c90b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

colour_analysis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def buffer_geometry(**kwargs):
412412
}
413413

414414
for attribute, values in kwargs.items():
415-
values = as_float_array(values)
415+
values = np.asarray(values)
416416
shape = values.shape
417417
dtype = values.dtype.name
418418

@@ -963,7 +963,7 @@ def pointer_gamut_visual(colourspace_model='CIE xyY'):
963963
POINTER_GAMUT_ILLUMINANT, colourspace_model),
964964
colourspace_model)
965965

966-
vertices.append(np.array(zip(section, section[1:])))
966+
vertices.append(list(zip(section, section[1:])))
967967

968968
vertices = as_float_array(vertices)
969969

@@ -991,6 +991,6 @@ def visible_spectrum_visual(colourspace_model='CIE xyY'):
991991
XYZ, ILLUMINANTS['CIE 1931 2 Degree Standard Observer']['E'],
992992
colourspace_model), colourspace_model)
993993

994-
vertices = np.array(zip(vertices, vertices[1:]))
994+
vertices = as_float_array(list(zip(vertices, vertices[1:])))
995995

996996
return buffer_geometry(position=vertices)

0 commit comments

Comments
 (0)