10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

Fix value instead of Value

This commit is contained in:
Mickaël Véril 2020-01-05 15:58:09 +01:00
parent ac200b8b58
commit ef60928c4f

View File

@ -120,20 +120,20 @@ class excitationBase {
const [initialt, finalt] = ty.split(arrow, 2) const [initialt, finalt] = ty.split(arrow, 2)
const initialts = initialt.split(",") const initialts = initialt.split(",")
if (initialts.length==2||initialts.length==2){ if (initialts.length==2||initialts.length==2){
this.type.value = this.type | excitationTypes.Singulet this.type.Value = this.type | excitationTypes.Singulet
} }
else{ else{
this.type.value = this.type | excitationTypes.Doublet this.type.Value = this.type | excitationTypes.Doublet
} }
const finalts = finalt.split(",").map(x => x.trim()) const finalts = finalt.split(",").map(x => x.trim())
if (initialts.includes("n") && finalts.includes(String.raw`\pi^\star`)) { if (initialts.includes("n") && finalts.includes(String.raw`\pi^\star`)) {
this.type.value = this.type | excitationTypes.PiPis this.type.Value = this.type | excitationTypes.PiPis
} else if (initialts.includes(String.raw`\pi`) in initialts && finals.includes(String.raw`\pi^\star`)) { } else if (initialts.includes(String.raw`\pi`) in initialts && finals.includes(String.raw`\pi^\star`)) {
this.type.value = this.type | excitationTypes.PiPis this.type.Value = this.type | excitationTypes.PiPis
} else if (ty.includes(String.raw`\pi^\star`)) { } else if (ty.includes(String.raw`\pi^\star`)) {
this.type.value = this.type | excitationTypes.RYDBERG this.type.Value = this.type | excitationTypes.RYDBERG
} else if (ty.includes(String.raw`\mathrm{V}`)) { } else if (ty.includes(String.raw`\mathrm{V}`)) {
this.type.value = this.type | excitationTypes.VALENCE this.type.Value = this.type | excitationTypes.VALENCE
} }
} }
} }