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.comment = null
|
||||||
this.code = null
|
this.code = null
|
||||||
this.method = null
|
this.method = null
|
||||||
this.TBEmethod=null
|
|
||||||
this.excitations = []
|
this.excitations = []
|
||||||
this.DOI = null
|
this.DOI = null
|
||||||
this.sourceFile=null
|
this.sourceFile=null
|
||||||
}
|
}
|
||||||
get isTBE(){
|
get isTBE(){
|
||||||
return this.TBEmethod!==null;
|
return this.method.name="TBE"
|
||||||
}
|
}
|
||||||
static async loadAsync(file) {
|
static async loadAsync(file) {
|
||||||
switch (trueTypeOf(file)) {
|
switch (trueTypeOf(file)) {
|
||||||
@ -146,9 +145,6 @@ class dataFileBase {
|
|||||||
case "doi":
|
case "doi":
|
||||||
dat.DOI = new DOI(value);
|
dat.DOI = new DOI(value);
|
||||||
break;
|
break;
|
||||||
case "tbemethod":
|
|
||||||
dat.TBEmethod=new method.fromString(value)
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,13 +22,12 @@ class dataFileBase(object):
|
|||||||
self.comment = ''
|
self.comment = ''
|
||||||
self.code = None
|
self.code = None
|
||||||
self.method = None
|
self.method = None
|
||||||
self.TBECorrMethod=None
|
|
||||||
self.excitations = []
|
self.excitations = []
|
||||||
self.DOI = ''
|
self.DOI = ''
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def IsTBE():
|
def IsTBE(self):
|
||||||
return self.TBECorrMethod is not None
|
return self.method.name=="TBE"
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def GetFileType():
|
def GetFileType():
|
||||||
@ -129,8 +128,6 @@ class dataFileBase(object):
|
|||||||
dic["Comment"]=self.comment
|
dic["Comment"]=self.comment
|
||||||
dic["code"]="" if self.code is None else self.code.toDataString()
|
dic["code"]="" if self.code is None else self.code.toDataString()
|
||||||
dic["method"]="" if self.method is None else self.method.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
|
dic["DOI"]="" if self.DOI is None else self.DOI
|
||||||
return dic
|
return dic
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user