def deserialize(self, location):
     configuration_file = os.path.join(location, getConfigFilename(self._state._identifier))
     s = QtCore.QSettings(configuration_file, QtCore.QSettings.IniFormat)
     s.beginGroup('state')
     self._state._identifier = s.value('identifier', '')
     self._state._geometricFieldLocation = s.value('geometricField', '')
     self._state._ensembleLocation = s.value('ensemble', '')
     self._state._meshLocation = s.value('mesh', '')
     s.endGroup()
     d = ConfigureDialog(self._state)
     self._configured = d.validate()
 def configure(self):
     d = ConfigureDialog(self._state)
     d.setModal(True)
     if d.exec_():
         self._state = d.getState()
         self.serialize(self._location)
         
     self._configured = d.validate()
     if self._configured and self._configuredObserver:
         self._configuredObserver()