From abaee88903f2007da0e86622478843785f64e837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 15 Sep 2020 15:31:17 +0200 Subject: [PATCH 1/6] Fix code.fromString must retrun a code not a method --- tools/lib/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/data.py b/tools/lib/data.py index 6273d7f6..0bc9ea08 100644 --- a/tools/lib/data.py +++ b/tools/lib/data.py @@ -238,7 +238,7 @@ class code: @staticmethod def fromString(string): vals = string.split(",") - return method(*vals) + return code(*vals) def toDataString(self): string=self.name From 220314190b8f0a66eedcaf95e546cf52600db100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 15 Sep 2020 15:56:15 +0200 Subject: [PATCH 2/6] Replace MAD by MAE --- content/dataset.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/dataset.html b/content/dataset.html index 45a93c1c..03f26530 100644 --- a/content/dataset.html +++ b/content/dataset.html @@ -364,7 +364,7 @@ draft: false var box = { x: noNanVals, amean: ss.mean(avals).toFixed(3), - name: key.toString() + " MAD : " + ss.mean(avals).toPrecision(4), + name: key.toString() + " MAE : " + ss.mean(avals).toPrecision(4), type: 'box', boxmean: 'sd' }; From 3c3218dcf209800eb273b57a1f2d9fff789865ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 15 Sep 2020 16:53:47 +0200 Subject: [PATCH 3/6] Fix x axis label --- content/dataset.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/dataset.html b/content/dataset.html index 03f26530..d5c0fe01 100644 --- a/content/dataset.html +++ b/content/dataset.html @@ -391,7 +391,7 @@ draft: false margin: { l: 0, r: 10, - b: 15, + // b: 15, t: 20, pad: 0, }, From 4dddd52b0704515165b3c315a67e91a24501ed82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Wed, 16 Sep 2020 09:21:20 +0200 Subject: [PATCH 4/6] Replace energy by error --- content/dataset.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/dataset.html b/content/dataset.html index d5c0fe01..06313053 100644 --- a/content/dataset.html +++ b/content/dataset.html @@ -379,7 +379,7 @@ draft: false }, xaxis: { title: { - text: 'Energy (eV)', + text: 'Error (eV)', } }, bgcolor: '#E2E2E2', From 7f37ee80009f746fbaa92f4fe20d063f78b63869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Wed, 16 Sep 2020 09:27:06 +0200 Subject: [PATCH 5/6] Add unit to legend --- content/dataset.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/dataset.html b/content/dataset.html index 06313053..3bab7c9b 100644 --- a/content/dataset.html +++ b/content/dataset.html @@ -364,7 +364,7 @@ draft: false var box = { x: noNanVals, amean: ss.mean(avals).toFixed(3), - name: key.toString() + " MAE : " + ss.mean(avals).toPrecision(4), + name: `${key.toString()} MAE : ${ss.mean(avals).toPrecision(4)} eV` , type: 'box', boxmean: 'sd' }; From 3d192d3cde4cebfb63f443c5a61b7d14b51fe654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Wed, 16 Sep 2020 10:01:40 +0200 Subject: [PATCH 6/6] Increase the size of graph +50% --- content/dataset.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/dataset.html b/content/dataset.html index 3bab7c9b..fc5c1408 100644 --- a/content/dataset.html +++ b/content/dataset.html @@ -386,8 +386,8 @@ draft: false bordercolor: '#FFFFFF', borderwidth: 2, // autosize: false, - width: 850, - height: 500, + width: 1275, + height: 750, margin: { l: 0, r: 10,