mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-24 13:23:40 +01:00
Delete TBE method and replace with TBE as method name
This commit is contained in:
parent
70c579da02
commit
f0cd5eeb8b
@ -107,13 +107,12 @@ class dataFileBase {
|
||||
this.comment = null
|
||||
this.code = null
|
||||
this.method = null
|
||||
this.TBEmethod=null
|
||||
this.excitations = []
|
||||
this.DOI = null
|
||||
this.sourceFile=null
|
||||
}
|
||||
get isTBE(){
|
||||
return this.TBEmethod!==null;
|
||||
return this.method.name="TBE"
|
||||
}
|
||||
static async loadAsync(file) {
|
||||
switch (trueTypeOf(file)) {
|
||||
@ -146,9 +145,6 @@ class dataFileBase {
|
||||
case "doi":
|
||||
dat.DOI = new DOI(value);
|
||||
break;
|
||||
case "tbemethod":
|
||||
dat.TBEmethod=new method.fromString(value)
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
@ -22,13 +22,12 @@ class dataFileBase(object):
|
||||
self.comment = ''
|
||||
self.code = None
|
||||
self.method = None
|
||||
self.TBECorrMethod=None
|
||||
self.excitations = []
|
||||
self.DOI = ''
|
||||
|
||||
@property
|
||||
def IsTBE():
|
||||
return self.TBECorrMethod is not None
|
||||
def IsTBE(self):
|
||||
return self.method.name=="TBE"
|
||||
|
||||
@staticmethod
|
||||
def GetFileType():
|
||||
@ -129,8 +128,6 @@ class dataFileBase(object):
|
||||
dic["Comment"]=self.comment
|
||||
dic["code"]="" if self.code is None else self.code.toDataString()
|
||||
dic["method"]="" if self.method is None else self.method.toDataString()
|
||||
if self.TBECorrMethod is not None:
|
||||
dic["TBECorrMethod"]=self.TBECorrMethod.toDataString()
|
||||
dic["DOI"]="" if self.DOI is None else self.DOI
|
||||
return dic
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user