implement opportunity to apply different kind of event data to the data object
This commit is contained in:
parent
1d70a236d1
commit
b3ea4229a4
@ -149,6 +149,21 @@ class Data(object):
|
|||||||
def getEvtData(self):
|
def getEvtData(self):
|
||||||
return self.evtdata
|
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):
|
class GenericDataStructure(object):
|
||||||
'''
|
'''
|
||||||
GenericDataBase type holds all information about the current data-
|
GenericDataBase type holds all information about the current data-
|
||||||
|
Loading…
Reference in New Issue
Block a user