[Bugfix]: No scaling if 0.0!
This commit is contained in:
parent
075beb2db3
commit
707c596672
2
PyLoT.py
2
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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user