From 37c092181c24236b8d52f302d132364fdc091357 Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Fri, 24 Apr 2020 17:11:15 +0200 Subject: [PATCH] Bugfix: division --- esbo_etc/classes/SpectralQty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esbo_etc/classes/SpectralQty.py b/esbo_etc/classes/SpectralQty.py index 8a039bc..bcbbc3a 100644 --- a/esbo_etc/classes/SpectralQty.py +++ b/esbo_etc/classes/SpectralQty.py @@ -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):