2019-09-28 15:23:25 +02:00
---
title: "Multiple dataset"
date: 2019-09-27 16:41
draft: false
---
2019-10-07 12:10:45 +02:00
< link rel = "stylesheet" type = "text/css" href = "/css/modal.css" / >
2019-10-10 10:40:34 +02:00
< link rel = "stylesheet" type = "text/css" href = "/css/form.css" / >
2019-12-29 20:00:13 +01:00
< link rel = "stylesheet" type = "text/css" href = "/css/table.css" / >
2020-02-16 18:09:37 +01:00
< link rel = "stylesheet" type = "text/css" href = "/css/emoji.css" / >
2019-10-07 10:23:21 +02:00
< script src = "/js/data.js" type = "text/javascript" > < / script >
< script src = "/js/loadAllData.js" type = "text/javascript" > < / script >
< script src = "/js/getFullDataPath.js" type = "text/javascript" > < / script >
< script src = "/js/getTextFromFile.js" type = "text/javascript" > < / script >
< script src = "/js/trueTypeOf.js" type = "text/javascript" > < / script >
< script src = "/js/uniq.js" > < / script >
2019-10-07 11:22:44 +02:00
< script src = "/js/processingIndicator.js" > < / script >
2019-10-07 10:23:21 +02:00
< script src = "/js/noNan.js" > < / script >
< script src = "/js/websiteFile.js" > < / script >
2020-02-15 11:19:36 +01:00
< script src = "/js/getPublis.js" > < / script >
2019-09-28 15:23:25 +02:00
< script src = "https://cdn.rawgit.com/larsgw/citation.js/archive/citation.js/citation-0.4.0-9.js"
type="text/javascript">< / script >
2019-11-02 15:53:53 +01:00
< script src = "/js/DOICache.js" > < / script >
2020-01-04 18:07:31 +01:00
< script src = "/js/nestedCheckbox.js" > < / script >
2020-01-27 11:09:35 +01:00
< script src = "/js/selectSelectAll.js" > < / script >
2019-09-29 15:58:34 +02:00
< script src = "https://unpkg.com/simple-statistics@7.0.2/dist/simple-statistics.min.js" > < / script >
2020-01-29 10:37:39 +01:00
< script src = "https://cdn.jsdelivr.net/npm/bowser@2.5.3/es5.min.js" > < / script >
2020-02-15 11:19:36 +01:00
< script src = "https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.13.1/js-yaml.min.js" > < / script >
2020-02-04 09:44:48 +01:00
< script src = "/js/numberUtils.js" > < / script >
2019-09-28 15:23:25 +02:00
< script >
2020-02-16 11:48:55 +01:00
function adjustSticky() {
const height = $("nav").height()
$("thead.sticky > tr > th ").css("top", height)
2020-02-03 14:26:11 +01:00
}
2019-10-09 20:10:48 +02:00
window.onload = async () => {
2020-02-16 11:48:55 +01:00
window.browser = bowser.getParser(window.navigator.userAgent);
2020-02-04 10:29:01 +01:00
$("input[type='checkbox']:checked").trigger("change")
2020-02-03 14:26:11 +01:00
adjustSticky();
$(window).resize(adjustSticky)
2019-12-15 19:32:14 +01:00
const LatexInline = ['\\(', '\\)']
2020-01-28 17:33:56 +01:00
var slist = $("#SelectList")
getAllSelect().each(function () {
$("< li / > ").text($('label[for="' + $(this).attr('id') + '"]').text()).appendTo(slist)
})
2020-02-16 11:48:55 +01:00
$('[data-needbrowser],[data-neednotbrowser]').each(function () {
function test(key, value) {
2020-02-04 12:07:03 +01:00
switch (key) {
case "Engine":
2020-02-16 11:48:55 +01:00
return value.some((v) => browser.isEngine(v))
2020-02-04 12:07:03 +01:00
break;
case "Browser":
2020-02-16 11:48:55 +01:00
return value.some((v) => browser.isBrowser(v))
2020-02-04 12:07:03 +01:00
case "Platform":
2020-02-16 11:48:55 +01:00
return value.some((v) => browser.isPlatform(v))
2020-02-04 12:07:03 +01:00
case "OS":
2020-02-16 11:48:55 +01:00
return value.some((v) => browser.isOS(v))
2020-02-04 12:07:03 +01:00
default:
return true
break;
}
}
2020-02-16 11:48:55 +01:00
const needdata = $(this).data("needbrowser")
const neednotdata = $(this).data("neednotbrowser")
const need = ((needdata == null) ? true : Object.entries(needdata).every(kv => test(kv[0], kv[1])))
const neednot = ((neednotdata == null) ? true : Object.entries(neednotdata).some(kv => !test(kv[0], kv[1])))
if (need & & neednot) {
2020-01-29 10:37:39 +01:00
$(this).show()
2020-02-04 12:07:03 +01:00
} else {
$(this).hide()
2020-01-29 10:37:39 +01:00
}
})
2020-01-04 18:07:31 +01:00
var cbextl = $("#cb_exTypeList")
2020-01-28 17:33:56 +01:00
var extl = $("#exTypeList")
2020-02-16 11:48:55 +01:00
var vertkindtl = $("#exVertKindList")
2020-01-28 17:33:56 +01:00
for (const [name, value] of VertExcitationKinds.All) {
$("< li / > ").text(name).appendTo(vertkindtl)
}
2020-01-03 17:12:43 +01:00
for (const [name, value] of excitationTypes.All) {
2020-03-08 16:17:04 +01:00
var txt=value.description.string
if (value.description.isLaTeX) {
txt=LatexInline[0]+txt+LatexInline[1]
2019-12-19 12:19:32 +01:00
}
2020-03-08 16:17:04 +01:00
$("< li / > ").text(txt).appendTo(extl)
2020-01-04 18:07:31 +01:00
var cbli = $("< li / > ")
$("< input / > ", { type: "checkbox", id: "cb_" + name, name: name, value: Number(value) }).change(nestedCheckbox_change).appendTo(cbli);
2020-03-08 16:17:04 +01:00
$('< label / > ', { 'for': 'cb_' + name, text: txt }).appendTo(cbli);
2020-01-04 18:07:31 +01:00
cbextl.append(cbli);
2019-12-15 19:32:14 +01:00
}
await MathJax.typesetPromise();
2020-01-04 18:07:31 +01:00
delete (cbextl)
2020-01-28 17:33:56 +01:00
delete (extl)
delete (vertkindtl)
2019-11-02 15:53:53 +01:00
window.doiCache = new DOICache()
2020-01-27 11:09:35 +01:00
await loadFiles()
2020-01-14 10:06:31 +01:00
}
async function loadFiles() {
processingIndicator.isActive = true
2020-01-14 11:20:38 +01:00
var chks = []
2020-01-27 11:09:35 +01:00
proms = []
proms.push(getAbsFilesName().map((f) => VertDataFile.loadAsync(f, VertExcitationKinds.Absorbtion)));
proms.push(getFluoFilesName().map((f) => VertDataFile.loadAsync(f, VertExcitationKinds.Fluorescence)))
window.defaultDats = []
2020-01-22 15:48:49 +01:00
for (const subproms of proms) {
2020-02-16 11:48:55 +01:00
const sub = await Promise.all(subproms)
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))) {
const submol = subdoi.filter(d => d.molecule === mol)
const TBE = submol.find((d) => d.method.isTBE)
if (TBE !== undefined) {
for (dat of submol.filter((d) => d !== TBE)) {
dat.CopyExcitationsTypeFrom(TBE)
}
}
2020-01-15 13:10:21 +01:00
}
}
2020-02-16 11:48:55 +01:00
2020-01-27 11:09:35 +01:00
window.defaultDats = window.defaultDats.concat(sub)
2020-01-15 13:10:21 +01:00
}
2020-01-14 10:06:31 +01:00
processingIndicator.isActive = false
2020-01-28 11:41:06 +01:00
reloadCustomFiles()
2019-09-28 15:23:25 +02:00
}
2020-01-27 11:13:49 +01:00
async function reloadCustomFiles() {
2020-01-27 11:09:35 +01:00
window.dats = window.defaultDats;
2020-01-28 11:41:06 +01:00
const kinds = new Map([["file_abs", VertExcitationKinds.Absorbtion], ["file_fluo", VertExcitationKinds.Fluorescence]])
2020-01-27 11:09:35 +01:00
for (const el of $('#form_dat > fieldset > div > input[type="file"')) {
if (kinds.has(el.name)) {
for (const f of el.files) {
2020-01-28 11:41:06 +01:00
const dat = await VertDataFile.loadAsync(f, kinds.get(this.name))
2019-10-02 19:20:37 +02:00
window.dats.push(dat)
2020-01-27 11:09:35 +01:00
}
2019-10-02 19:20:37 +02:00
}
}
2020-01-28 11:41:06 +01:00
reloadSelect("DOI")
2020-01-27 11:13:49 +01:00
}
2020-01-28 11:41:06 +01:00
async function clearSelect(BeforeName = null) {
var selects = ((BeforeName == null) ? getAllSelect() : getAllSelectAfter(BeforeName, true))
selects.add($('#sel_ref'))
selects.each(function () {
2020-01-13 09:35:15 +01:00
$(this).empty()
2019-10-10 09:49:39 +02:00
})
2020-01-27 11:16:57 +01:00
}
2020-01-28 11:41:06 +01:00
function getAllSelect() {
return $('#form_dat > fieldset > div > select')
}
2020-01-28 17:33:56 +01:00
function getAllSelectAfter(Name, include = false) {
const selects = getAllSelect()
2020-01-28 11:41:06 +01:00
var index = selects.index($(`[name="${Name}"]`))
if (!include) {
index++
}
return selects.slice(index)
}
function getAllSelectBefore(Name, include = false) {
2020-01-28 17:33:56 +01:00
const selects = getAllSelect()
2020-01-28 11:41:06 +01:00
var index = selects.index($(`[name="${Name}"]`))
if (include) {
index++
}
return selects.slice(0, index)
}
async function reloadNextSelect(e) {
2020-01-28 17:33:56 +01:00
const afters = getAllSelectAfter(e.target.name)
const isLast = afters.length == 0
2020-01-28 11:41:06 +01:00
if (!isLast) {
await reloadSelect(afters.prop("name"))
}
2020-02-16 11:48:55 +01:00
const fillArray = ["molecule"]
2020-01-29 17:53:37 +01:00
if (fillArray.includes(afters.prop("name"))) {
selectSelectAll(afters.first())
}
2020-01-28 17:33:56 +01:00
var submit = $(e.target.form).find(':submit')
submit.prop("disabled", !isLast)
2020-01-28 11:41:06 +01:00
}
async function reloadSelect(name) {
clearSelect(name)
var selects = getAllSelectBefore(name, true)
var currentselect = selects.last()
2020-01-28 17:33:56 +01:00
selects = selects.slice(0, selects.length - 1)
2020-01-28 11:41:06 +01:00
const vals = uniq(window.dats.filter(d => {
2020-01-28 17:33:56 +01:00
return Array.from(selects).every((el) => {
return $(el).val().includes(getSelectValue(d, el.name))
2020-01-28 11:41:06 +01:00
})
}).map((d) => getSelectValue(d, name)))
2020-02-15 11:19:36 +01:00
const sets = await (async ()=>{
if(name === "DOI"){
const publis=await getPublis()
const sets=publis.sets
return sets
}
else{
return undefined
}
})()
2020-01-28 11:41:06 +01:00
for (const val of vals) {
if (val !== null) {
$("< option / > ", {
value: val
}).text((name === "DOI" & & sets.has(val)) ? sets.get(val) : val.toString()).appendTo(currentselect)
2019-10-09 17:53:10 +02:00
}
2020-01-28 11:41:06 +01:00
}
}
function getSelectValue(data, name) {
switch (name) {
case "method":
return data.method.name
break;
case "basis":
return data.method.basis
case "DOI":
return data.DOI.string
default:
return data[name]
break;
}
2019-09-28 15:23:25 +02:00
}
2019-10-09 20:10:48 +02:00
async function reloadStat() {
processingIndicator.isActive = true
var stb = $("#stat_table > tbody")
2019-10-09 17:53:10 +02:00
$("#graph_div").empty()
$(stb).empty()
2019-10-09 20:10:48 +02:00
var refstr = $("#sel_ref option:selected").val()
var sdatdic = new Map()
2020-01-04 18:07:31 +01:00
for (const d of window.filtData) {
2020-02-24 11:07:19 +01:00
const key = JSON.stringify([d.method, d.DOI.string])
2019-10-09 20:10:48 +02:00
if (!(sdatdic.has(key))) {
sdatdic.set(key, new Map())
2019-10-01 14:37:26 +02:00
}
2019-10-09 20:10:48 +02:00
for (const exc of d.excitations) {
2020-01-27 11:09:35 +01:00
const key2 = JSON.stringify([d.molecule, exc.initial, exc.final, exc.cVertExcitationKind])
2019-10-09 20:10:48 +02:00
const keydic = sdatdic.get(key)
2020-01-27 11:09:35 +01:00
if ((!exc.isUnsafe || window.filterParams[0]) & & ((exc.type & window.filterParams[1]) !== 0) & & ((exc.VertExcitationKind & window.filterParams[2]) !== 0)) {
2020-01-06 09:45:29 +01:00
if (!(keydic.has(key2))) {
2020-03-14 17:46:12 +01:00
keydic.set(key2,exc.value)
2020-01-06 09:45:29 +01:00
}
2019-10-01 14:37:26 +02:00
}
2019-10-09 20:10:48 +02:00
}
2019-10-01 14:37:26 +02:00
}
2019-10-09 20:10:48 +02:00
var sdic = new Map()
for (const [key, sdat] of sdatdic) {
for (const [key2, exval] of sdat) {
if (!(sdic.has(key))) {
sdic.set(key, [])
2019-10-01 14:37:26 +02:00
}
2019-10-09 20:10:48 +02:00
sdic.get(key).push(exval - ((sdatdic.has(refstr)) ? sdatdic.get(refstr).get(key2) : NaN))
2019-10-01 14:37:26 +02:00
}
}
2019-10-08 11:47:48 +02:00
sdic.delete(refstr)
2019-10-09 20:10:48 +02:00
var graphdat = []
for (const [keystr, vals] of sdic) {
row = $("< tr / > ")
key = JSON.parse(keystr)
2020-01-13 10:13:19 +01:00
Reflect.setPrototypeOf(key[0], method.prototype)
2020-01-12 17:20:13 +01:00
//Reflect.setPrototypeOf(key[1], DOI.prototype)
2020-02-20 14:42:40 +01:00
th = $("< th / > ", { scope: "column" })
const [meth, doi] = key
th.clone().text(meth.toString("\n").split('-').join('\u2011')).appendTo(row)
var thdoi = th.clone()
var publi = doiCache.get(doi, true)
2020-03-18 14:54:37 +01:00
const publis = await getPublis()
const sets=publis.sets
2020-02-20 14:42:40 +01:00
if (sets.has(doi)) {
var str = sets.get(doi)
$(thdoi).append(str + " ")
2019-10-01 14:37:26 +02:00
}
2020-02-20 14:42:40 +01:00
$("< a / > ", {
href: new DOI(doi).url,
target: "_blank"
}).html(publi.format('citation', {
format: 'html',
lang: 'en-US'
})).appendTo(thdoi)
$(row).append(thdoi)
const noNanVals = (vals.every((v) => Number.isNaN(v))) ? vals : (vals.filter((v) => !Number.isNaN(v)))
const avals = noNanVals.map(v => Math.abs(v))
for (const val of [ss.min(noNanVals), ss.max(noNanVals), ss.mean(noNanVals), ss.mean(avals), ss.median(noNanVals), ss.median(avals), ss.rootMeanSquare(noNanVals), ss.variance(noNanVals), ss.standardDeviation(noNanVals)]) {
$("< td / > ").text(noNanFixed(val, 2)).appendTo(row)
2019-10-04 11:03:30 +02:00
}
2020-02-20 14:42:40 +01:00
$(stb).append(row)
var box = {
x: noNanVals,
amean: ss.mean(avals).toFixed(3),
name: key[0].toString() + " MAD : " + ss.mean(avals).toPrecision(4),
type: 'box',
boxmean: 'sd'
};
graphdat.push(box)
}
var layout = {
paper_bgcolor: 'rgba(0,0,0,0)',
plot_bgcolor: 'rgba(0,0,0,0)',
gap: 0,
legend: {
traceorder: 'reversed',
},
xaxis: {
title: {
text: 'Energy (eV)',
}
},
bgcolor: '#E2E2E2',
bordercolor: '#FFFFFF',
borderwidth: 2,
// autosize: false,
width: 850,
height: 500,
margin: {
l: 0,
r: 10,
b: 15,
t: 20,
pad: 0,
},
}
Plotly.newPlot('graph_div', graphdat, layout);
processingIndicator.isActive = false
2019-10-01 14:37:26 +02:00
}
2019-10-09 20:10:48 +02:00
async function reloadContent() {
2020-01-27 11:09:35 +01:00
window.filterParams = [$("#cb_unsafe").prop("checked"), Array.from(Array.from($("#cb_exTypeList>li>input[type=checkbox]:checked")).map(el => parseInt(el.value))).reduce((pv, cv) => pv + cv, 0), Array.from(Array.from($("#cb_exVertKindList>li>input[type=checkbox]:checked")).map(el => parseInt(el.value))).reduce((pv, cv) => pv + cv, 0)]
2019-11-02 15:53:53 +01:00
doiCache.clear()
2019-10-09 20:10:48 +02:00
processingIndicator.isActive = true
const LatexInline = ['\\(', '\\)']
2020-01-04 18:07:31 +01:00
window.filtData = window.dats
2019-10-09 20:10:48 +02:00
$('#form_dat > fieldset > div > select').each(function () {
const prop = $(this).attr("name")
const values = $(this).val()
2020-01-04 18:07:31 +01:00
window.filtData = window.filtData.filter((d) => {
2019-10-09 20:10:48 +02:00
if (typeof values == "undefined" || values == null) {
return false
2019-09-28 15:23:25 +02:00
}
2020-01-28 17:33:56 +01:00
return values.includes(getSelectValue(d, prop))
2020-01-14 10:06:31 +01:00
delete (val)
2019-09-28 15:23:25 +02:00
})
})
2020-01-04 18:07:31 +01:00
await window.doiCache.addRange(window.filtData.map((d) => d.DOI.string))
2020-01-13 09:35:15 +01:00
$(sel_ref).empty()
2020-02-24 11:07:19 +01:00
for (const el of uniq(window.filtData.map(d => [d.method, d.DOI.string]))) {
2020-01-03 17:12:43 +01:00
op = $("< option / > ", {
2019-12-09 14:51:59 +01:00
value: JSON.stringify(el)
2020-02-24 11:07:19 +01:00
}).text(el[0])
if (el[0].name.includes("TBE")) {
2019-12-10 09:11:04 +01:00
$(sel_ref).prepend(op)
}
2020-01-03 17:12:43 +01:00
else {
2019-12-10 09:11:04 +01:00
$(sel_ref).append(op)
}
2019-12-09 14:51:59 +01:00
}
2020-01-03 17:12:43 +01:00
$(sel_ref).prop("selectedIndex", 0);
var data = $("#data")
2020-01-04 12:57:22 +01:00
$(data).empty();
2020-01-04 18:07:31 +01:00
if (window.filtData.length > 0) {
2020-02-15 11:19:36 +01:00
const sets = (await getPublis()).sets
2020-01-03 17:12:43 +01:00
for (const doi of doiCache.keys()) {
2020-01-04 18:07:31 +01:00
paperdata = window.filtData.filter((d) => {
2020-01-03 17:12:43 +01:00
return d.DOI.string == doi
})
var methods = uniq(paperdata.map(d => d.method))
const sortedMethods = methods.sort((a, b) => {
if (a.isTBE & & !b.isTBE) {
return -1
}
else if (a.isTBE & & b.isTBE) {
2020-03-30 16:36:42 +02:00
if (a.basis!=="CBS" & & b.basis==="CBS") {
2020-01-03 17:12:43 +01:00
return -1
}
else {
return 1
}
}
else if (!a.isTBE & & b.isTBE) {
return 1
}
else {
return 0
}
})
var div = $('< div / > ').appendTo(data)
$("< h1 / > ").text(sets.get(doi)).appendTo(div)
var table = $("< table / > ").addClass("datatable").appendTo(div)
var head = $("< tr / > ")
2020-02-03 14:26:11 +01:00
$("< thead / > ").addClass("sticky").append(head).appendTo(table)
2020-01-03 17:12:43 +01:00
var tbody = $("< tbody / > ").appendTo(table)
2020-02-20 14:42:40 +01:00
var th = $("< th / > ", { scope: "column" })
2020-02-20 11:45:04 +01:00
head.append(["Molecule", "Transition"].map(x => th.clone().text(x)))
2020-02-20 11:55:22 +01:00
head.append(sortedMethods.map(x => th.clone().text(x.toString("\n").split('-').join('\u2011'))))
2020-02-03 14:26:11 +01:00
adjustSticky();
2020-01-03 17:12:43 +01:00
datadic = new Map()
for (const dat of paperdata) {
const key1 = dat.molecule;
if (!datadic.has(key1)) {
datadic.set(key1, new Map())
}
const key3 = JSON.stringify(dat.method)
for (const ex of dat.excitations) {
2020-01-14 10:06:31 +01:00
Reflect.setPrototypeOf(ex.type, excitationType.prototype)
2020-01-27 11:09:35 +01:00
if (((window.filterParams[1] & ex.type) !== 0) & & ((window.filterParams[2] & ex.VertExcitationKind) !== 0)) {
const key2 = JSON.stringify([ex.initial, ex.final, ex.type, ex.VertExcitationKind])
2020-01-04 18:07:31 +01:00
if (!datadic.get(key1).has(key2)) {
datadic.get(key1).set(key2, new Map())
}
datadic.get(key1).get(key2).set(key3, [ex.value, ex.isUnsafe])
2020-01-03 17:12:43 +01:00
}
2019-11-27 18:29:29 +01:00
}
2019-12-18 17:51:53 +01:00
}
2020-01-03 17:12:43 +01:00
for (const [molecule, moldat] of datadic.entries()) {
var printmol = true;
for (const [jsonex, exdat] of moldat.entries()) {
const ex = JSON.parse(jsonex)
Reflect.setPrototypeOf(ex[0], state.prototype)
Reflect.setPrototypeOf(ex[1], state.prototype)
Reflect.setPrototypeOf(ex[2], excitationType.prototype)
2020-01-27 11:09:35 +01:00
Reflect.setPrototypeOf(ex[3], VertExcitationKind.prototype)
2020-01-03 17:12:43 +01:00
var tr = $("< tr / > ")
if (printmol) {
2020-02-20 14:42:40 +01:00
$("< th / > ", { scope: "row", rowspan: moldat.size }).text(molecule).appendTo(tr)
2020-01-03 17:12:43 +01:00
printmol = false
}
2020-01-27 11:09:35 +01:00
var Vertkindtext = ""
if (ex[3].Value == VertExcitationKinds.Fluorescence.Value) {
2020-03-08 16:17:04 +01:00
Vertkindtext = String.raw`[\mathrm{F}]`
2020-01-27 11:09:35 +01:00
}
2020-03-31 14:24:01 +02:00
if(ex[2].description.string){
desctex="("+ex[2].description.string+")"
}
$("< th / > ", { scope: "rowgroup" }).text(String.raw`${LatexInline[0]}${ex[0].toLaTeX()} \rightarrow ${ex[1].toLaTeX()} ${Vertkindtext} ${desctex} ${LatexInline[1]}`).appendTo(tr)
2020-01-03 17:12:43 +01:00
var entries = Array.from(exdat.entries())
for (const method of sortedMethods) {
2020-01-24 12:17:58 +01:00
td = $("< td / > ").addClass("NumberCell")
2020-01-03 17:12:43 +01:00
kv = entries.find(x => {
return JSON.stringify(method) == x[0]
})
if (kv !== undefined) {
2020-01-04 18:07:31 +01:00
const [val, unsafe] = kv[1]
2020-01-03 17:12:43 +01:00
if (unsafe) {
2020-02-16 18:09:37 +01:00
td.append($("< span / > ", { title: "unsafe value", role: "img", "aria-label": "Warning" }).addClass("emoji").text('⚠'))
2020-01-03 17:12:43 +01:00
}
2020-01-04 18:07:31 +01:00
if (unsafe & & !$("#cb_unsafe").is(':checked')) {
2020-02-01 17:54:09 +01:00
td.append($("< s / > ").append(val.toString()))
2020-01-04 12:53:01 +01:00
}
2020-01-04 18:07:31 +01:00
else {
2020-02-01 17:54:09 +01:00
td.append(val.toString())
2020-01-04 12:53:01 +01:00
}
2020-01-03 17:12:43 +01:00
}
tr.append(td)
}
tbody.append(tr)
}
2019-09-30 09:20:13 +02:00
}
2019-09-28 15:23:25 +02:00
}
2020-01-03 17:12:43 +01:00
await MathJax.typesetPromise()
2019-09-29 15:58:34 +02:00
}
2019-10-01 14:37:26 +02:00
await reloadStat()
2019-09-28 15:23:25 +02:00
}
2020-01-14 10:06:31 +01:00
async function submitdat() {
window.onbeforeunload = () => { return ''; }
2020-01-09 13:11:20 +01:00
await reloadContent();
}
2019-09-28 15:23:25 +02:00
< / script >
{{< getDataFilesName > }}
2020-01-22 15:48:49 +01:00
< noscript >
2020-01-24 16:48:29 +01:00
< p style = "background-color: red; color: white; font-size: 20; font-weight: bold;" >
2020-02-16 18:09:37 +01:00
< span role = "img" aria-label = "Warning" class = "emoji" > ⚠< / span >
2020-01-24 16:48:29 +01:00
< span > This website work only if JavaScript is enable. You must enable
2020-01-22 15:48:49 +01:00
JavaScript.
< a href = "https://www.enable-javascript.com/" target = "_blank" > How to enable JavaScript ?< / a > < / span >
< / p >
< / noscript >
2019-10-09 20:10:48 +02:00
< p >
In this page you can compare multiple dataset and have somme statistics to evaluate method or basis accuracy.
For this follow this steps
< ol >
2020-01-28 17:33:56 +01:00
< li > Add custom files< / li >
< ul >
< li > Absorption< / li >
< li > Fluorescence< / li >
< / ul >
2020-02-04 12:07:03 +01:00
< li > Choose each parameter (of course you can select multiples values for each) you can use the the < buttongit
2020-02-16 11:48:55 +01:00
disabled>Select all< / button > button to select all items < span hidden
data-needbrowser='{"Engine":["WebKit","Blink"],"Platform":["desktop"]}'>or use the < kbd
2020-02-20 09:59:26 +01:00
data-needbrowser='{"OS":["MacOS"]}'>⌘< / kbd > < kbd
2020-02-16 11:48:55 +01:00
data-neednotbrowser='{"OS":["MacOS"]}'>Ctrl< / kbd > +< kbd > A< / kbd > shortcut key< / span > < / li >
2020-01-28 17:33:56 +01:00
< ul id = "SelectList" > < / ul >
< li > Choose filters:< / li >
2019-10-09 20:10:48 +02:00
< ul >
2020-01-28 17:33:56 +01:00
< li > Choose what kind of vertical excitations you want< / li >
< ul id = "exVertKindList" > < / ul >
< li > Choose other excitation parameters you want< / li >
< ul id = "exTypeList" > < / ul >
< li > Choose if you want to include unsafe values in statistics< / li >
2019-10-09 20:10:48 +02:00
< / ul >
2020-01-03 17:12:43 +01:00
< li > Select a reference from < strong > already selected data< / strong > (by default first is selected -it's the < abbr
title="Theoretical best estimate">TBE< / abbr > if present- is already selected)< / li >
2019-10-09 20:10:48 +02:00
< li > Now you can see the list of selected data and some statistics about these data< / li >
< / ol >
< / p >
2020-01-09 13:11:20 +01:00
< form id = "form_dat" action = "javascript:submitdat()" method = "post" >
2019-10-09 20:10:48 +02:00
< fieldset >
2020-01-27 11:09:35 +01:00
< legend > Import custom files< / legend >
< div >
< label for = "absFiles_input" > Add custom absorption data files< / label >
2020-01-28 11:41:06 +01:00
< input type = "file" multiple onchange = "reloadCustomFiles()" id = "absFiles_input" name = "file_abs" > < / input >
2020-01-27 11:09:35 +01:00
< / div >
2019-10-09 20:10:48 +02:00
< div >
2020-01-27 11:09:35 +01:00
< label for = "fluoFiles_input" > Add custom fluorescence data files< / label >
2020-01-28 11:41:06 +01:00
< input type = "file" multiple onchange = "reloadCustomFiles()" id = "fluoFiles_input" name = "file_fluo" > < / input >
2019-10-09 20:10:48 +02:00
< / div >
< / fieldset >
2019-10-10 10:40:34 +02:00
< fieldset class = "table" >
2020-01-14 11:46:10 +01:00
< div style = "display: inline-block;" >
2020-01-27 11:09:35 +01:00
< label for = "DOI_select" > Sets< / label >
2020-01-28 11:28:10 +01:00
< button class = "SelectAll" type = "button" onclick = "selectSelectAll_click(event)" > Select all< / button >
2020-01-28 11:41:06 +01:00
< select multiple id = "DOI_select" name = "DOI" onchange = "reloadNextSelect(event)" > < / select >
2020-01-14 11:46:10 +01:00
< / div >
< div style = "display:inline-block" >
2020-01-27 11:09:35 +01:00
< label for = "mol_select" > Molecules< / label >
2020-01-28 11:28:10 +01:00
< button class = "SelectAll" type = "button" onclick = "selectSelectAll_click(event)" > Select all< / button >
2020-01-28 11:41:06 +01:00
< select multiple id = "mol_select" name = "molecule" onchange = "reloadNextSelect(event)" > < / select >
2019-10-09 20:10:48 +02:00
< / div >
2020-01-22 15:48:49 +01:00
< br / >
2020-01-14 11:46:10 +01:00
< div style = "display: inline-block;" >
2020-01-27 11:09:35 +01:00
< label for = "method_select" > Methods< / label >
2020-01-28 11:28:10 +01:00
< button class = "SelectAll" type = "button" onclick = "selectSelectAll_click(event)" > Select all< / button >
2020-01-28 11:41:06 +01:00
< select multiple id = "method_select" name = "method" onchange = "reloadNextSelect(event)" > < / select >
2019-10-09 20:10:48 +02:00
< / div >
2020-01-14 11:46:10 +01:00
< div style = "display: inline-block;" >
2020-01-27 11:09:35 +01:00
< label for = "basis_select" > Basis sets< / label >
2020-01-28 11:28:10 +01:00
< button class = "SelectAll" type = "button" onclick = "selectSelectAll_click(event)" > Select all< / button >
2020-01-28 11:41:06 +01:00
< select multiple id = "basis_select" name = "basis" onchange = "reloadNextSelect(event)" > < / select >
2020-01-13 14:29:48 +01:00
< / div >
2019-10-09 20:10:48 +02:00
< / fieldset >
2020-01-27 11:09:35 +01:00
< fieldset >
< legend > Vertical excitation kind< / legend >
< ul class = "nestedCbList" style = "padding-left: 0em;" >
< li >
2020-02-04 10:29:01 +01:00
< input type = "checkbox" checked onchange = "nestedCheckbox_change(event)" id = "cb_fileType_All" > < / input >
2020-01-27 11:09:35 +01:00
< label for = "cb_fileType_All" > All< / label >
< / li >
< ul class = "nestedCbList" id = "cb_exVertKindList" >
< li >
2020-02-04 10:29:01 +01:00
< input type = "checkbox" onchange = "nestedCheckbox_change(event)" id = "cb_abs" value = "1" name = "datatype" >
2020-01-27 11:09:35 +01:00
< label for = "cb_abs" > Absorption< / label >
< / li >
< li >
2020-02-04 10:29:01 +01:00
< input type = "checkbox" onchange = "nestedCheckbox_change(event)" id = "cb_fluo" value = "2" name = "datatype" >
2020-01-27 11:09:35 +01:00
< label for = "fluo" > Fluorescence< / label >
< / ul >
< / li >
< / fieldset >
2020-01-04 12:53:01 +01:00
< fieldset id = "excitationFilter" >
2020-01-06 11:41:28 +01:00
< legend > Filters< / legend >
< ul class = "nestedCbList" style = "padding-left: 0em;" >
2020-01-04 18:07:31 +01:00
< li >
< input type = "checkbox" onchange = "nestedCheckbox_change(event)" id = "cb_exType_All" > < / input >
< label for = "cb_exType_All" > All< / label >
< / li >
2020-01-06 11:41:28 +01:00
< ul id = "cb_exTypeList" class = "nestedCbList" >
2020-01-04 18:07:31 +01:00
< / ul >
< li id = "li_cb_unsafe" >
< input type = "checkbox" id = "cb_unsafe" name = "unsafe" >
< label for = "cb_unsafe" > Unsafe< / label >
< / li >
2020-01-04 12:53:01 +01:00
< / fieldset >
2019-10-09 20:10:48 +02:00
< input type = "submit" disabled = true value = "Load" > < / input >
< / form >
< form id = "form_ref" >
< label for = "sel_ref" > Reference< / label >
< select id = "sel_ref" onchange = "reloadStat()" > < / select >
< / form >
2020-01-03 17:12:43 +01:00
< section id = "data" >
2019-10-09 20:10:48 +02:00
< / section >
< section >
2019-12-29 20:00:13 +01:00
< table id = "stat_table" class = "datatable" >
2020-02-03 14:26:11 +01:00
< thead class = "sticky" >
2020-02-20 14:42:40 +01:00
< th scope = "col" > Method< / th >
< th scope = "col" > Set< / th >
< th scope = "col" > Min< / th >
< th scope = "col" > Max< / th >
< th scope = "col" > MSE< / th >
< th scope = "col" > MAE< / th >
< th scope = "col" > Median< / th >
< th scope = "col" > Absolute Median< / th >
< th scope = "col" > RMS< / th >
< th scope = "col" > Variance< / th >
< th scope = "col" > Standard deviation< / th >
2019-09-29 15:58:34 +02:00
< / thead >
2019-10-09 17:53:10 +02:00
< tbody >
2019-09-28 15:23:25 +02:00
< / tbody >
2019-10-04 11:03:30 +02:00
< div id = "graph_div" > < / div >
2019-09-28 15:23:25 +02:00
< / table >
2019-10-09 20:10:48 +02:00
< / section >
2019-10-07 14:00:15 +02:00
{{< waitModal > }}