[bugfix] entering if when len(mag) == 1
This commit is contained in:
parent
172786dc6d
commit
bfec58cc24
2
PyLoT.py
2
PyLoT.py
@ -1389,7 +1389,7 @@ class MainWindow(QMainWindow):
|
|||||||
lat = origin.latitude
|
lat = origin.latitude
|
||||||
lon = origin.longitude
|
lon = origin.longitude
|
||||||
depth = origin.depth
|
depth = origin.depth
|
||||||
if len(event.magnitudes) >= 1:
|
if len(event.magnitudes) > 1:
|
||||||
moment_magnitude = event.magnitudes[0]
|
moment_magnitude = event.magnitudes[0]
|
||||||
local_magnitude = event.magnitudes[1]
|
local_magnitude = event.magnitudes[1]
|
||||||
localmag = '%4.1f' % local_magnitude.mag
|
localmag = '%4.1f' % local_magnitude.mag
|
||||||
|
Loading…
Reference in New Issue
Block a user