TODO: restructuring the datastructure classes; suggestion: write a Superclass GenericDataStructure which is than inherited by PilotDataStructure and SeiscompDataStructure
This commit is contained in:
parent
0760c2fe3a
commit
426c2d0d4c
@ -41,6 +41,10 @@ def autoPyLoT(fnames, inputfile):
|
||||
if parameter.hasParam('datastructure'):
|
||||
datastructure = DATASTRUCTURE[parameter.getParam('datastructure')]()
|
||||
|
||||
dsfields = {'root':parameter.rootpath} #see TODO: in data.py
|
||||
|
||||
datastructure.modifyFields(dsfields)
|
||||
|
||||
def expandSDS(datastructure):
|
||||
return datastructure.expandDataPath()
|
||||
|
||||
@ -51,6 +55,8 @@ def autoPyLoT(fnames, inputfile):
|
||||
|
||||
expandMethod = dsem[datastructure.getName()]
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# parse arguments
|
||||
parser = argparse.ArgumentParser(
|
||||
|
@ -146,6 +146,7 @@ class Data(object):
|
||||
def getEvtData(self):
|
||||
return self.evtdata
|
||||
|
||||
#TODO: write superclass DataStructure instead of three fully featured individual classes
|
||||
|
||||
class GenericDataStructure(object):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user