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

Acceleration

This commit is contained in:
Anthony Scemama 2020-11-19 23:18:52 +01:00
parent 5d637180c7
commit 768420b677
3 changed files with 4 additions and 7 deletions

View File

@ -111,8 +111,7 @@ draft: false
const subset = sub.filter(d => d.set.isSameSet(exSet))
for (mol of uniq(subset.map(d => d.molecule))) {
const submol = subset.filter(d => d.molecule === mol)
const source = await submol.findAsync(async (d) => {
// const source = submol.find((d) => {
const source = submol.find((d) => {
if (db.sets.get(d.set.name)[d.set.index] === "10.1021/acs.jctc.8b01205") {
return d.method.name === "CASPT2" && d.method.basis === "aug-cc-pVDZ"
} else {

View File

@ -281,7 +281,7 @@ class dataFileBase {
file = getFullDataPath(file)
// const maxAge= (DebugMode.Enabled,0,600)
// var str = await getTextFromFileUrlAsync(file,{"Cache-Control":`max-age=${maxAge}`})
var str = await getTextFromFileUrl(file) //TODO
var str = await getTextFromFileUrl(file)
break;
case File.name:
var str = await getTextFromUploadedFileAsync(file)

View File

@ -4,12 +4,10 @@ async function loadAllData() {
fluo: [],
};
for (const f of getAbsFilesName()) {
// dic.abs.push(VertDataFile.load(f,VertExcitationKinds.Absorbtion))
dic.abs.push(await VertDataFile.loadAsync(f,VertExcitationKinds.Absorbtion))
dic.abs.push(VertDataFile.load(f,VertExcitationKinds.Absorbtion))
}
for (const f of getFluoFilesName()) {
// dic.fluo.push(VertDataFile.load(f,VertExcitationKinds.Fluorescence))
dic.fluo.push(await VertDataFile.loadAsync(f,VertExcitationKinds.Fluorescence))
dic.fluo.push(VertDataFile.load(f,VertExcitationKinds.Fluorescence))
}
return dic;
}