Skip to content

Commit

Permalink
Update to get results between 0 and 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gutenzwerg authored and tigerxy committed May 23, 2022
1 parent 5b8593a commit afc9946
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions colour/volume/macadam_limits.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ def bright_opti_colour(width, center, lightsource):
else:
final_optimum = rough_optimum / brightness * target_bright

out_X = np.sum(final_optimum * X_illuminated)
out_Y = target_bright * maximum_brightness
out_Z = np.sum(final_optimum * Z_illuminated)
out_X = np.sum(final_optimum * X_illuminated) / maximum_brightness
out_Y = target_bright
out_Z = np.sum(final_optimum * Z_illuminated) / maximum_brightness
triple = np.array([out_X, out_Y, out_Z])
out_limits[wavelength] = triple
return (out_limits)

0 comments on commit afc9946

Please sign in to comment.