mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Delete ZPE and twoStateDataFile
This commit is contained in:
parent
59fe15b56f
commit
f85e7d75c8
@ -19,7 +19,6 @@ class state:
|
|||||||
class dataType(IntEnum):
|
class dataType(IntEnum):
|
||||||
ABS=auto()
|
ABS=auto()
|
||||||
FLUO=auto()
|
FLUO=auto()
|
||||||
ZPE=auto()
|
|
||||||
class dataFileBase(object):
|
class dataFileBase(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.molecule = ''
|
self.molecule = ''
|
||||||
@ -83,7 +82,6 @@ class dataFileBase(object):
|
|||||||
switcher={
|
switcher={
|
||||||
dataType.ABS:AbsDataFile,
|
dataType.ABS:AbsDataFile,
|
||||||
dataType.FLUO:FluoDataFile,
|
dataType.FLUO:FluoDataFile,
|
||||||
dataType.ZPE:ZPEDataFile
|
|
||||||
}
|
}
|
||||||
if format==Format.LINE:
|
if format==Format.LINE:
|
||||||
for col in range(1,np.size(table,1)):
|
for col in range(1,np.size(table,1)):
|
||||||
@ -267,26 +265,6 @@ class FluoDataFile(oneStateDataFileBase):
|
|||||||
def GetFileType():
|
def GetFileType():
|
||||||
return dataType.FLUO
|
return dataType.FLUO
|
||||||
|
|
||||||
class twoStateDataFileBase(dataFileBase):
|
|
||||||
def __init__(self):
|
|
||||||
super(twoStateDataFileBase,self).__init__()
|
|
||||||
self.GS=None
|
|
||||||
self.ES=None
|
|
||||||
|
|
||||||
def getMetadata(self):
|
|
||||||
dic=super(twoStateDataFileBase,self).getMetadata()
|
|
||||||
dic["GS"]= "" if self.GS is None else self.GS.toDataString()
|
|
||||||
dic["ES"]="" if self.ES is None else self.ES.toDataString()
|
|
||||||
dic.move_to_end("DOI")
|
|
||||||
return dic
|
|
||||||
|
|
||||||
class ZPEDataFile(twoStateDataFileBase):
|
|
||||||
def __init__(self):
|
|
||||||
super(ZPEDataFile,self).__init__()
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def GetFileType():
|
|
||||||
return dataType.ZPE
|
|
||||||
|
|
||||||
class excitationBase:
|
class excitationBase:
|
||||||
def __init__(self,initial, final, **kwargs):
|
def __init__(self,initial, final, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user