10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Use filterParams in statistics

This commit is contained in:
Mickaël Véril 2020-01-06 09:45:29 +01:00
parent 04a58c41b1
commit 6addc32215

View File

@ -147,10 +147,12 @@ draft: false
for (const exc of d.excitations) { for (const exc of d.excitations) {
const key2 = JSON.stringify([d.molecule, exc.initial, exc.final]) const key2 = JSON.stringify([d.molecule, exc.initial, exc.final])
const keydic = sdatdic.get(key) const keydic = sdatdic.get(key)
if (!(keydic.has(key2))) { if ((!exc.isUnsafe || window.filterParams[0]) && (exc.type & window.filterParams[1])) {
keydic.set(key2, []) if (!(keydic.has(key2))) {
keydic.set(key2, [])
}
keydic.get(key2).push(exc.value)
} }
keydic.get(key2).push(exc.value)
} }
} }
var sdic = new Map() var sdic = new Map()