diff --git a/PyLoT.py b/PyLoT.py index 2e4917f8..7dbb60bb 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -3426,7 +3426,7 @@ class MainWindow(QMainWindow): print("Network local magnitude: %4.1f" % net_ml.mag) if magscaling is None: scaling = False - elif magscaling[0] != 0 and magscaling[1] != 0: + elif magscaling[0] == 0.0 and magscaling[1] == 0.0: scaling = False else: scaling = True diff --git a/pylot/core/analysis/magnitude.py b/pylot/core/analysis/magnitude.py index a8bb8536..936d5c01 100644 --- a/pylot/core/analysis/magnitude.py +++ b/pylot/core/analysis/magnitude.py @@ -132,7 +132,7 @@ class Magnitude(object): scaling = False else: scaling = True - if scaling: + if scaling == True: # scaling necessary print("Scaling network magnitude ...") mag = ope.Magnitude(