From b537719315be9706d32329b3044f1a59f68ce66f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 10 Dec 2019 15:01:46 +0100 Subject: [PATCH] Delete unescesary code --- static/js/data.js | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/static/js/data.js b/static/js/data.js index fe3183d7..8f4f3e9a 100644 --- a/static/js/data.js +++ b/static/js/data.js @@ -112,25 +112,11 @@ class 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) this.value = value - this.corrected = corrected 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 { @@ -162,7 +148,10 @@ class dataFileBase { this.sourceFile=null } 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) { switch (trueTypeOf(file)) {