[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)
|
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
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user