10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Delete unescesary code

This commit is contained in:
Mickaël Véril 2019-12-10 15:01:46 +01:00
parent c47cc2ee28
commit b537719315

View File

@ -112,25 +112,11 @@ class excitationBase {
} }
} }
class excitationValue extends excitationBase { class excitationValue extends excitationBase {
constructor(initial, final, type, value,corrected=null,oscilatorForces=null,T1=null) { constructor(initial, final, type, value,oscilatorForces=null,T1=null) {
super(initial, final, type, T1) super(initial, final, type, T1)
this.value = value this.value = value
this.corrected = corrected
this.oscilatorForces = oscilatorForces this.oscilatorForces = oscilatorForces
} }
get correctedValue(){
if(this.corrected) {
return this.corrected
}
else{
return this.value
}
}
get Correction(){
if(this.corrected){
return this.corrected-this.value
}
}
} }
class excitation extends excitationBase { class excitation extends excitationBase {
@ -162,7 +148,10 @@ class dataFileBase {
this.sourceFile=null this.sourceFile=null
} }
get isTBE(){ get isTBE(){
return this.method.name=="TBE" return this.method.name.test(/^TBE/)
}
get isCorrected(){
return this.method.name.test(/corr$/)
} }
static async loadAsync(file) { static async loadAsync(file) {
switch (trueTypeOf(file)) { switch (trueTypeOf(file)) {