[bugfix] setting Datastructure to obspydmt or None caused crash and corrupted QSettings
This commit is contained in:
parent
5f6f986e3e
commit
b870b5378a
@ -733,6 +733,22 @@ class PilotDataStructure(GenericDataStructure):
|
|||||||
self.setExpandFields(['root', 'database'])
|
self.setExpandFields(['root', 'database'])
|
||||||
|
|
||||||
|
|
||||||
|
class ObspyDMTdataStructure(GenericDataStructure):
|
||||||
|
"""
|
||||||
|
Object containing the data access information for the old PILOT data
|
||||||
|
structure.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self, **fields):
|
||||||
|
if not fields:
|
||||||
|
fields = {'database': '',
|
||||||
|
'root': ''}
|
||||||
|
|
||||||
|
GenericDataStructure.__init__(self, **fields)
|
||||||
|
|
||||||
|
self.setExpandFields(['root', 'database'])
|
||||||
|
|
||||||
|
|
||||||
class SeiscompDataStructure(GenericDataStructure):
|
class SeiscompDataStructure(GenericDataStructure):
|
||||||
"""
|
"""
|
||||||
Dictionary containing the data access information for an SDS data archive:
|
Dictionary containing the data access information for an SDS data archive:
|
||||||
|
@ -6,7 +6,7 @@ Created on Wed Jan 26 17:47:25 2015
|
|||||||
@author: sebastianw
|
@author: sebastianw
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from pylot.core.io.data import SeiscompDataStructure, PilotDataStructure
|
from pylot.core.io.data import SeiscompDataStructure, PilotDataStructure, ObspyDMTdataStructure
|
||||||
|
|
||||||
DATASTRUCTURE = {'PILOT': PilotDataStructure, 'SeisComP': SeiscompDataStructure,
|
DATASTRUCTURE = {'PILOT': PilotDataStructure, 'SeisComP': SeiscompDataStructure,
|
||||||
'obspyDMT': None, None: None}
|
'obspyDMT': ObspyDMTdataStructure, None: PilotDataStructure}
|
||||||
|
Loading…
Reference in New Issue
Block a user