10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-05 05:33:55 +01:00

Add singulet doublet value for type

This commit is contained in:
Mickaël Véril 2019-12-03 11:32:14 +01:00
parent 361639edb6
commit 441117fbab

View File

@ -88,6 +88,12 @@ class excitationBase {
if (ty.include(arrow)) { if (ty.include(arrow)) {
initial, final = ty.split(arrow, 2) initial, final = ty.split(arrow, 2)
initials = initial.split(",") initials = initial.split(",")
if (initials.length==2||initials.length==2){
trty = trty| excitationType.Singulet
}
else{
trty = trty | excitationType.Doublet
}
finals = final.split(",").map(x => x.strip()) finals = final.split(",").map(x => x.strip())
if (initials.include("n") && finals.include(String.raw('\pis'))) { if (initials.include("n") && finals.include(String.raw('\pis'))) {
trty = trty | excitationType.PiPis trty = trty | excitationType.PiPis