make the code more readable

This commit is contained in:
Sebastian Wehling-Benatelli 2015-06-23 13:22:30 +02:00
parent b1990e6e1c
commit ca4c5edb18

View File

@ -64,8 +64,8 @@ class MainWindow(QMainWindow):
settings.setValue("agency_id", agency) settings.setValue("agency_id", agency)
self.recentEvents = settings.value("data/recentEvents", []) self.recentEvents = settings.value("data/recentEvents", [])
self.fnames = None self.fnames = None
self.dataStructure = DATASTRUCTURE[ structure_setting = settings.value("data/Structure", "PILOT")
settings.value("data/Structure", "PILOT")]() self.dataStructure = DATASTRUCTURE[structure_setting]()
self.seismicPhase = str(settings.value("phase", "P")) self.seismicPhase = str(settings.value("phase", "P"))
self.dispComponent = str(settings.value("plotting/dispComponent", "Z")) self.dispComponent = str(settings.value("plotting/dispComponent", "Z"))
if settings.value("data/dataRoot", None) is None: if settings.value("data/dataRoot", None) is None: