mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-25 13:41:50 +02:00
Acceleration
This commit is contained in:
parent
5d637180c7
commit
768420b677
@ -111,8 +111,7 @@ draft: false
|
|||||||
const subset = sub.filter(d => d.set.isSameSet(exSet))
|
const subset = sub.filter(d => d.set.isSameSet(exSet))
|
||||||
for (mol of uniq(subset.map(d => d.molecule))) {
|
for (mol of uniq(subset.map(d => d.molecule))) {
|
||||||
const submol = subset.filter(d => d.molecule === mol)
|
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") {
|
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"
|
return d.method.name === "CASPT2" && d.method.basis === "aug-cc-pVDZ"
|
||||||
} else {
|
} else {
|
||||||
|
@ -281,7 +281,7 @@ class dataFileBase {
|
|||||||
file = getFullDataPath(file)
|
file = getFullDataPath(file)
|
||||||
// const maxAge= (DebugMode.Enabled,0,600)
|
// const maxAge= (DebugMode.Enabled,0,600)
|
||||||
// var str = await getTextFromFileUrlAsync(file,{"Cache-Control":`max-age=${maxAge}`})
|
// var str = await getTextFromFileUrlAsync(file,{"Cache-Control":`max-age=${maxAge}`})
|
||||||
var str = await getTextFromFileUrl(file) //TODO
|
var str = await getTextFromFileUrl(file)
|
||||||
break;
|
break;
|
||||||
case File.name:
|
case File.name:
|
||||||
var str = await getTextFromUploadedFileAsync(file)
|
var str = await getTextFromUploadedFileAsync(file)
|
||||||
|
@ -4,12 +4,10 @@ async function loadAllData() {
|
|||||||
fluo: [],
|
fluo: [],
|
||||||
};
|
};
|
||||||
for (const f of getAbsFilesName()) {
|
for (const f of getAbsFilesName()) {
|
||||||
// dic.abs.push(VertDataFile.load(f,VertExcitationKinds.Absorbtion))
|
dic.abs.push(VertDataFile.load(f,VertExcitationKinds.Absorbtion))
|
||||||
dic.abs.push(await VertDataFile.loadAsync(f,VertExcitationKinds.Absorbtion))
|
|
||||||
}
|
}
|
||||||
for (const f of getFluoFilesName()) {
|
for (const f of getFluoFilesName()) {
|
||||||
// dic.fluo.push(VertDataFile.load(f,VertExcitationKinds.Fluorescence))
|
dic.fluo.push(VertDataFile.load(f,VertExcitationKinds.Fluorescence))
|
||||||
dic.fluo.push(await VertDataFile.loadAsync(f,VertExcitationKinds.Fluorescence))
|
|
||||||
}
|
}
|
||||||
return dic;
|
return dic;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user