Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 749610b

Browse files
committed
improvements of Berlinium look&feel
1 parent 82bb6fe commit 749610b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

init-data.sql

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple,
88
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (2, 'elements', 'elements', '', '', '', 1, 1, 0, 1, 0, 1, 1, 0, 0, 2);
99
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (3, 'compound', 'nelem', '', '', '', 30, 0, 0, 1, 1, 1, 1, 0, 1, 2);
1010
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (4, 'formula units', 'expanded', '', '', '', 40, 0, 0, 0, 0, 0, 0, 0, 1, 2);
11-
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (1501, 'lattice a', 'lata', '', 'lattice a, Å', '', 4, 0, 0, 0, 1, 0, 0, 0, 1, 2);
12-
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (1502, 'lattice b', 'latb', '', 'lattice b, Å', '', 5, 0, 0, 0, 1, 0, 0, 0, 1, 2);
13-
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (1503, 'lattice c', 'latc', '', 'lattice c, Å', '', 6, 0, 0, 0, 1, 0, 0, 0, 1, 2);
11+
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (1501, 'lattice a', 'lata', '', 'Lattice a, Å', '', 4, 0, 0, 0, 1, 0, 0, 0, 1, 2);
12+
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (1502, 'lattice b', 'latb', '', 'Lattice b, Å', '', 5, 0, 0, 0, 1, 0, 0, 0, 1, 2);
13+
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (1503, 'lattice c', 'latc', '', 'Lattice c, Å', '', 6, 0, 0, 0, 1, 0, 0, 0, 1, 2);
1414
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (1504, 'lattice alpha', 'latalpha', '', '', '', 7, 0, 0, 0, 1, 0, 0, 0, 1, 2);
1515
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (1505, 'lattice beta', 'latbeta', '', '', '', 8, 0, 0, 0, 1, 0, 0, 0, 1, 2);
1616
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (1506, 'lattice gamma', 'latgamma', '', '', '', 9, 0, 0, 0, 1, 0, 0, 0, 1, 2);
@@ -21,7 +21,7 @@ INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple,
2121
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (11, 'space group (Sch.)', 'sg', 'Result space group (Schoenflis notation)', '', '', 160, 0, 0, 1, 1, 0, 1, 0, 0, 2);
2222
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (12, 'space group (int)', 'ng', 'Result space group (international notation)', '', '', 170, 0, 0, 1, 1, 0, 0, 0, 0, 2);
2323
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (13, 'layer group (int)', 'dg', 'Result layer group (international notation)', '', '', 180, 0, 1, 0, 0, 0, 0, 0, 0, 2);
24-
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (50, 'space group', 'spg', 'Result space group (both international and Schoenflis notations)', '', '', 181, 0, 0, 1, 0, 0, 1, 0, 0, 2);
24+
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (50, 'space group', 'spg', 'Result space group (both international and Schoenflis notations)', '', '', 181, 0, 0, 1, 1, 0, 1, 0, 0, 2);
2525
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (8, 'system type', 'tags', '', '', '', 60, 1, 1, 1, 0, 1, 1, 0, 0, 2);
2626
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (6, 'calculated property', 'calctypes', '', '', '', 270, 1, 0, 1, 0, 1, 1, 0, 0, 1);
2727
INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple, optional, has_summary_contrb, has_column, has_facet, has_topic, chem_formula, plottable, hgroup_id) VALUES (7, 'xc treatment', 'H', '', 'XC treatment', '', 190, 0, 1, 1, 1, 0, 1, 0, 0, 3);

tilde/berlinium/plotter.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ def eplotter(task, data): # CRYSTAL, VASP, EXCITING
170170
fdata.append([n, i])
171171

172172
for n in range(len(fdata)):
173-
fdata[n][1] = "%10.5f" % fdata[n][1]
173+
#fdata[n][1] = "%10.5f" % fdata[n][1]
174+
fdata[n][1] = round(fdata[n][1], 5)
174175

175176
results.append({'color': color, 'clickable:': clickable, 'data': fdata})
176177
return results

0 commit comments

Comments
 (0)