From b999c968379a491961cddec60e285e213b2fdce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Fri, 7 Aug 2020 17:50:54 +0200 Subject: [PATCH 1/2] Fix DebugMode with Unknow set --- static/js/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/data.js b/static/js/data.js index 7f49ad8b..fda7daeb 100644 --- a/static/js/data.js +++ b/static/js/data.js @@ -347,7 +347,7 @@ class dataFileBase { } }); console.assert(double.length === 0, "Double found", double, dat.molecule, dat.method.toString()) - if (dat.DOI.string !== "10.1021/acs.jctc.8b01205") { + if (dat.DOI!== null && dat.DOI.string !== "10.1021/acs.jctc.8b01205") { for (const ex of dat.excitations) { console.assert(Number.isNaN(ex.T1.valueOf()) | ex.T1 > 50 | ex.isUnsafe == true, "Must be unsafe", dat, ex) } From dec65d5028e207855da2fe3de96926a0f58205fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 11 Aug 2020 12:24:34 +0200 Subject: [PATCH 2/2] Fix dat mustn't be a global variable --- content/dataset.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/dataset.html b/content/dataset.html index ddc6ee35..3152a688 100644 --- a/content/dataset.html +++ b/content/dataset.html @@ -111,7 +111,7 @@ draft: false } }) if (source !== undefined) { - for (dat of submol.filter((d) => d !== source)) { + for (const dat of submol.filter((d) => d !== source)) { dat.CopyExcitationsTypeFrom(source) } }