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

Get type from CASPT2 if set is QUEST2

This commit is contained in:
Mickaël Véril 2020-03-31 14:28:45 +02:00
parent 0dc9adaa76
commit c742aa9b4f

View File

@ -106,10 +106,16 @@ draft: false
const subdoi = sub.filter(d => d.DOI.string === doi)
for (mol of uniq(subdoi.map(d => d.molecule))) {
const submol = subdoi.filter(d => d.molecule === mol)
const TBE = submol.find((d) => d.method.isTBE)
if (TBE !== undefined) {
for (dat of submol.filter((d) => d !== TBE)) {
dat.CopyExcitationsTypeFrom(TBE)
const source = submol.find((d) => {
if (d.DOI.string==="10.1021/acs.jctc.8b01205") {
return d.method.name==="CASPT2" && d.method.basis==="aug-cc-pVDZ"
} else {
return d.method.isTBE
}
})
if (source !== undefined) {
for (dat of submol.filter((d) => d !== source)) {
dat.CopyExcitationsTypeFrom(source)
}
}
}