10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 06:14:38 +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) const subdoi = sub.filter(d => d.DOI.string === doi)
for (mol of uniq(subdoi.map(d => d.molecule))) { for (mol of uniq(subdoi.map(d => d.molecule))) {
const submol = subdoi.filter(d => d.molecule === mol) const submol = subdoi.filter(d => d.molecule === mol)
const TBE = submol.find((d) => d.method.isTBE) const source = submol.find((d) => {
if (TBE !== undefined) { if (d.DOI.string==="10.1021/acs.jctc.8b01205") {
for (dat of submol.filter((d) => d !== TBE)) { return d.method.name==="CASPT2" && d.method.basis==="aug-cc-pVDZ"
dat.CopyExcitationsTypeFrom(TBE) } else {
return d.method.isTBE
}
})
if (source !== undefined) {
for (dat of submol.filter((d) => d !== source)) {
dat.CopyExcitationsTypeFrom(source)
} }
} }
} }