[Bugfix]: No scaling if 0.0!

This commit is contained in:
Ludger Küperkoch 2020-07-08 15:32:16 +02:00
parent 075beb2db3
commit 707c596672
2 changed files with 2 additions and 2 deletions

View File

@ -3426,7 +3426,7 @@ class MainWindow(QMainWindow):
print("Network local magnitude: %4.1f" % net_ml.mag) print("Network local magnitude: %4.1f" % net_ml.mag)
if magscaling is None: if magscaling is None:
scaling = False scaling = False
elif magscaling[0] != 0 and magscaling[1] != 0: elif magscaling[0] == 0.0 and magscaling[1] == 0.0:
scaling = False scaling = False
else: else:
scaling = True scaling = True

View File

@ -132,7 +132,7 @@ class Magnitude(object):
scaling = False scaling = False
else: else:
scaling = True scaling = True
if scaling: if scaling == True:
# scaling necessary # scaling necessary
print("Scaling network magnitude ...") print("Scaling network magnitude ...")
mag = ope.Magnitude( mag = ope.Magnitude(