Skip to content

Commit afc9946

Browse files
gutenzwergtigerxy
authored andcommitted
Update to get results between 0 and 1
1 parent 5b8593a commit afc9946

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

colour/volume/macadam_limits.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,9 @@ def bright_opti_colour(width, center, lightsource):
319319
else:
320320
final_optimum = rough_optimum / brightness * target_bright
321321

322-
out_X = np.sum(final_optimum * X_illuminated)
323-
out_Y = target_bright * maximum_brightness
324-
out_Z = np.sum(final_optimum * Z_illuminated)
322+
out_X = np.sum(final_optimum * X_illuminated) / maximum_brightness
323+
out_Y = target_bright
324+
out_Z = np.sum(final_optimum * Z_illuminated) / maximum_brightness
325325
triple = np.array([out_X, out_Y, out_Z])
326326
out_limits[wavelength] = triple
327327
return (out_limits)

0 commit comments

Comments
 (0)