mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +01:00
Change T1 from excitationBase to excitationValue
This commit is contained in:
parent
e3fb90361f
commit
c179863b48
@ -70,15 +70,15 @@ class DOI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class excitationBase {
|
class excitationBase {
|
||||||
constructor(initial, final) {
|
constructor(initial, final,T1=null) {
|
||||||
this.initial = initial;
|
this.initial = initial;
|
||||||
this.final = final
|
this.final = final
|
||||||
this.T1=NaN
|
this.T1=T1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class excitationValue extends excitationBase {
|
class excitationValue extends excitationBase {
|
||||||
constructor(initial, final, value,corrected=null,oscilatorForces) {
|
constructor(initial, final, value,corrected=null,oscilatorForces=null,T1=null) {
|
||||||
super(initial, final)
|
super(initial, final,T1=null)
|
||||||
this.value = value
|
this.value = value
|
||||||
this.corrected = corrected
|
this.corrected = corrected
|
||||||
this.oscilatorForces = oscilatorForces
|
this.oscilatorForces = oscilatorForces
|
||||||
@ -106,7 +106,7 @@ class excitation extends excitationBase {
|
|||||||
class dataFileBase {
|
class dataFileBase {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.molecule = ''
|
this.molecule = ''
|
||||||
this.comment = null
|
this.comment = ""
|
||||||
this.code = null
|
this.code = null
|
||||||
this.method = null
|
this.method = null
|
||||||
this.excitations = []
|
this.excitations = []
|
||||||
@ -179,7 +179,8 @@ class dataFileBase {
|
|||||||
var val=((vals.length>=5) ? parseFloat(vals[6], 10): NaN)
|
var val=((vals.length>=5) ? parseFloat(vals[6], 10): NaN)
|
||||||
var cor=((vals.length>=6) ? parseFloat(vals[7], 10): NaN)
|
var cor=((vals.length>=6) ? parseFloat(vals[7], 10): NaN)
|
||||||
var oscilatorForces=((vals.length>=7) ? parseFloat(vals[7],10): NaN)
|
var oscilatorForces=((vals.length>=7) ? parseFloat(vals[7],10): NaN)
|
||||||
var ex = new excitationValue(start, end, val,cor,oscilatorForces);
|
var T1=((vals.length>=8) ? parseFloat(vals[8],10): NaN)
|
||||||
|
var ex = new excitationValue(start, end, val,cor,oscilatorForces,T1);
|
||||||
dat.excitations.push(ex);
|
dat.excitations.push(ex);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user