implement opportunity to apply different kind of event data to the data object

This commit is contained in:
Sebastian Wehling-Benatelli 2015-06-10 15:46:37 +02:00
parent 1d70a236d1
commit b3ea4229a4

View File

@ -149,6 +149,21 @@ class Data(object):
def getEvtData(self):
return self.evtdata
def applyEVTData(self, data, type='pick'):
def applyPicks(picks):
pass
def applyArrivals(arrivals):
pass
def applyEvent(event):
pass
applydata = {'pick':applyPicks,
'arrival':applyArrivals,
'event':applyEvent}
applydata[type](data)
class GenericDataStructure(object):
'''
GenericDataBase type holds all information about the current data-