Skip to content

Commit

Permalink
Removed unnecessary unpacking.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMauderer committed Oct 25, 2014
1 parent e093f8e commit ac03475
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions colour/colorimetry/photometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ def luminous_flux(spd,
lef = lef.clone().align(spd.shape, left=0, right=0)
spd = spd.clone() * lef

wavelengths, values = zip(*spd.items)
flux = K_m * np.trapz(values, wavelengths)
flux = K_m * np.trapz(spd.values, spd.wavelengths)

return flux

0 comments on commit ac03475

Please sign in to comment.