mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-26 06:01:49 +02:00
Change filters beaviour (one or more criteria)
This commit is contained in:
parent
f051f48b42
commit
5bb19399f3
@ -163,7 +163,7 @@ draft: false
|
||||
for (const exc of d.excitations) {
|
||||
const key2 = JSON.stringify([d.molecule, exc.initial, exc.final])
|
||||
const keydic = sdatdic.get(key)
|
||||
if ((!exc.isUnsafe || window.filterParams[0]) && ((exc.type & window.filterParams[1])==exc.type.Value)) {
|
||||
if ((!exc.isUnsafe || window.filterParams[0]) && ((exc.type & window.filterParams[1])!==0)) {
|
||||
if (!(keydic.has(key2))) {
|
||||
keydic.set(key2, [])
|
||||
}
|
||||
@ -331,7 +331,7 @@ draft: false
|
||||
const key3 = JSON.stringify(dat.method)
|
||||
for (const ex of dat.excitations) {
|
||||
Reflect.setPrototypeOf(ex.type,excitationType.prototype)
|
||||
if ((window.filterParams[1] & ex.type)==ex.type.Value) {
|
||||
if ((window.filterParams[1] & ex.type)!==0) {
|
||||
const key2 = JSON.stringify([ex.initial, ex.final, ex.type])
|
||||
if (!datadic.get(key1).has(key2)) {
|
||||
datadic.get(key1).set(key2, new Map())
|
||||
|
Loading…
Reference in New Issue
Block a user