Bugfix: division

This commit is contained in:
Lukas Klass 2020-04-24 17:11:15 +02:00
parent 24f9f8aebe
commit 37c092181c

View File

@ -294,7 +294,7 @@ class SpectralQty:
return SpectralQty(self.wl, self.qty / other)
# Factor is of type lambda
elif isLambda(other):
return SpectralQty(self.wl, self.qty / other(self.wl).value * other(self.wl[0]).unit)
return SpectralQty(self.wl, self.qty / other(self.wl).value / other(self.wl[0]).unit)
# Factor is of type SpectralQty
else:
if other.wl.unit.is_equivalent(self.wl.unit):