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

Commit

Permalink
improvements of Berlinium look&feel
Browse files Browse the repository at this point in the history
  • Loading branch information
blokhin committed Mar 3, 2016
1 parent 82bb6fe commit 749610b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions init-data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple,
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
Expand All @@ -21,7 +21,7 @@ INSERT INTO hierarchy (cid, name, source, legend, html, slider, sort, multiple,
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);
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);
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);
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);
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);
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);
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);
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);
Expand Down
3 changes: 2 additions & 1 deletion tilde/berlinium/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def eplotter(task, data): # CRYSTAL, VASP, EXCITING
fdata.append([n, i])

for n in range(len(fdata)):
fdata[n][1] = "%10.5f" % fdata[n][1]
#fdata[n][1] = "%10.5f" % fdata[n][1]
fdata[n][1] = round(fdata[n][1], 5)

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

0 comments on commit 749610b

Please sign in to comment.