[bugfix] transform to float for different python library versions
This commit is contained in:
parent
29440deb6f
commit
fa4423f65d
4
PyLoT.py
4
PyLoT.py
@ -1855,8 +1855,8 @@ class MainWindow(QMainWindow):
|
|||||||
origin_time = curr_event.origins[0].time
|
origin_time = curr_event.origins[0].time
|
||||||
tstart = settings.value('tstart') if get_None(settings.value('tstart')) else 0
|
tstart = settings.value('tstart') if get_None(settings.value('tstart')) else 0
|
||||||
tstop = settings.value('tstop') if get_None(settings.value('tstop')) else 0
|
tstop = settings.value('tstop') if get_None(settings.value('tstop')) else 0
|
||||||
tstart = origin_time + tstart
|
tstart = origin_time + float(tstart)
|
||||||
tstop = origin_time + tstop
|
tstop = origin_time + float(tstop)
|
||||||
else:
|
else:
|
||||||
tstart = None
|
tstart = None
|
||||||
tstop = None
|
tstop = None
|
||||||
|
Loading…
Reference in New Issue
Block a user