Bugfix: division
This commit is contained in:
parent
24f9f8aebe
commit
37c092181c
@ -294,7 +294,7 @@ class SpectralQty:
|
|||||||
return SpectralQty(self.wl, self.qty / other)
|
return SpectralQty(self.wl, self.qty / other)
|
||||||
# Factor is of type lambda
|
# Factor is of type lambda
|
||||||
elif isLambda(other):
|
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
|
# Factor is of type SpectralQty
|
||||||
else:
|
else:
|
||||||
if other.wl.unit.is_equivalent(self.wl.unit):
|
if other.wl.unit.is_equivalent(self.wl.unit):
|
||||||
|
Loading…
Reference in New Issue
Block a user