mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +01:00
Use getAllData in multipledataset
This commit is contained in:
parent
92c2f31606
commit
f491488863
@ -97,12 +97,9 @@ draft: false
|
||||
async function loadFiles() {
|
||||
processingIndicator.isActive = true
|
||||
var chks = []
|
||||
proms = []
|
||||
proms.push(getAbsFilesName().map((f) => VertDataFile.loadAsync(f, VertExcitationKinds.Absorbtion)));
|
||||
proms.push(getFluoFilesName().map((f) => VertDataFile.loadAsync(f, VertExcitationKinds.Fluorescence)))
|
||||
var data= await loadAllData()
|
||||
window.defaultDats = []
|
||||
for (const subproms of proms) {
|
||||
const sub = await Promise.all(subproms)
|
||||
for (const sub of Object.values(data)) {
|
||||
for (const doi of uniq(sub.map(d => d.DOI.string))) {
|
||||
const subdoi = sub.filter(d => d.DOI.string === doi)
|
||||
for (mol of uniq(subdoi.map(d => d.molecule))) {
|
||||
|
Loading…
Reference in New Issue
Block a user