10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 21:24:00 +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,12 +147,14 @@ 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 ((!exc.isUnsafe || window.filterParams[0]) && (exc.type & window.filterParams[1])) {
if (!(keydic.has(key2))) { if (!(keydic.has(key2))) {
keydic.set(key2, []) keydic.set(key2, [])
} }
keydic.get(key2).push(exc.value) keydic.get(key2).push(exc.value)
} }
} }
}
var sdic = new Map() var sdic = new Map()
for (const [key, sdat] of sdatdic) { for (const [key, sdat] of sdatdic) {
for (const [key2, exval] of sdat) { for (const [key2, exval] of sdat) {