mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Fix excitation type parsing
This commit is contained in:
parent
7d2f503388
commit
f1d24fb938
@ -118,26 +118,26 @@ class excitationBase {
|
|||||||
for (const ty of tys) {
|
for (const ty of tys) {
|
||||||
if (ty.includes(arrow)) {
|
if (ty.includes(arrow)) {
|
||||||
const [initialt, finalt] = ty.split(arrow, 2)
|
const [initialt, finalt] = ty.split(arrow, 2)
|
||||||
const initialts = initialt.split(",")
|
const initialts = initialt.split(",").map(x => x.trim())
|
||||||
if (initialts.length==2||initialts.length==2){
|
const finalts = finalt.split(",").map(x => x.trim())
|
||||||
this.type.Value = this.type | excitationTypes.Simple
|
if (initialts.length == 2 && finalt.length == 2) {
|
||||||
}
|
|
||||||
else{
|
|
||||||
this.type.Value = this.type | excitationTypes.Double
|
this.type.Value = this.type | excitationTypes.Double
|
||||||
}
|
}
|
||||||
const finalts = finalt.split(",").map(x => x.trim())
|
else if (initialts.length == 1 && finalt.length == 1) {
|
||||||
|
this.type.Value = this.type | excitationTypes.Single
|
||||||
|
}
|
||||||
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.nPis
|
||||||
} 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`\mathrm{R}`)) {
|
||||||
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
this.T1 = T1
|
this.T1 = T1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user