diff --git a/data/wbm/fetch_process_wbm_dataset.py b/data/wbm/fetch_process_wbm_dataset.py index 99cdaa94..34b6edf0 100644 --- a/data/wbm/fetch_process_wbm_dataset.py +++ b/data/wbm/fetch_process_wbm_dataset.py @@ -440,9 +440,8 @@ def fix_bad_struct_index_mismatch(material_id: str) -> str: text=f"dataset cropped to within +/- {e_form_cutoff} eV/atom", showarrow=False, ) -fig.update_layout( - xaxis_title="WBM formation energy (eV/atom)", margin=dict(l=10, r=10, t=40, b=10) -) +x_axis_title = "WBM uncorrected formation energy (eV/atom)" +fig.update_layout(xaxis_title=x_axis_title, margin=dict(l=10, r=10, t=40, b=10)) # %% diff --git a/data/wbm/readme.md b/data/wbm/readme.md index 7bab9ee7..4049f211 100644 --- a/data/wbm/readme.md +++ b/data/wbm/readme.md @@ -21,6 +21,7 @@ The full set of processing steps used to curate the WBM test set from the raw da - remove 6 pathological structures (with 0 volume) - remove formation energy outliers below -5 and above 5 eV/atom (502 and 22 crystals respectively out of 257,487 total, including an anomaly of 500 structures at exactly -10 eV/atom) + WBM Formation energy distribution. 524 materials outside green dashed lines were discarded. WBM formation energy histogram indicating outlier cutoffs @@ -71,8 +72,7 @@ materialscloud:2021.68 includes a readme file with a description of the dataset, ## Data Plots -Heatmap of elemental prevalence in WBM dataset. - +Heatmap of elemental prevalence in WBM dataset. Periodic table log heatmap of WBM elements diff --git a/site/package.json b/site/package.json index 6f19245d..1e18770c 100644 --- a/site/package.json +++ b/site/package.json @@ -25,7 +25,7 @@ "@typescript-eslint/parser": "^5.48.0", "eslint": "^8.31.0", "eslint-plugin-svelte3": "^4.0.0", - "hastscript": "^7.1.0", + "hastscript": "^7.2.0", "highlight.js": "^11.7.0", "mdsvex": "^0.10.6", "prettier": "^2.8.1", @@ -34,11 +34,11 @@ "rehype-slug": "^5.1.0", "svelte": "^3.55.0", "svelte-check": "^3.0.1", - "svelte-github-corner": "^0.1.0", + "svelte-github-corner": "^0.2.0", "svelte-preprocess": "^5.0.0", "svelte-toc": "^0.5.1", "svelte2tsx": "^0.6.0", - "sveriodic-table": "^0.1.1", + "sveriodic-table": "^0.1.2", "tslib": "^2.4.1", "typescript": "^4.9.4", "vite": "^4.0.4" diff --git a/site/src/app.css b/site/src/app.css index 14363c9f..0953434d 100644 --- a/site/src/app.css +++ b/site/src/app.css @@ -15,11 +15,13 @@ } body { background: var(--night); - padding: calc(1ex + 2vw); font-family: -apple-system, BlinkMacSystemFont, Roboto, sans-serif; color: var(--text-color); line-height: 1.5; } +main { + padding: calc(1ex + 2vw); +} button { color: var(--text-color); cursor: pointer; @@ -37,6 +39,15 @@ a { a:hover { color: orange; } +a.link { + padding: 0 4pt; + background-color: rgba(255, 255, 255, 0.1); + border-radius: 3pt; + transition: 0.2s; +} +a.link[aria-current='page'] { + color: mediumseagreen; +} code { overflow-wrap: break-word; padding: 1pt 3pt; @@ -81,11 +92,7 @@ tbody tr:nth-child(odd) { } h1 { - display: flex; - font-size: clamp(2rem, 2rem + 2vw, 3rem); - place-items: center; - place-content: center; - margin: 1.2em 0; + text-align: center; } :where(h2, h3, h4, h5, h6) { @@ -128,3 +135,7 @@ aside.toc.desktop { left: calc(50vw + 50em / 2); max-width: 16em; } + +caption { + display: block; +} diff --git a/site/src/lib/Footer.svelte b/site/src/lib/Footer.svelte new file mode 100644 index 00000000..92d5b63c --- /dev/null +++ b/site/src/lib/Footer.svelte @@ -0,0 +1,22 @@ + + + + + diff --git a/site/src/lib/Nav.svelte b/site/src/lib/Nav.svelte index 24a1f762..106b173a 100644 --- a/site/src/lib/Nav.svelte +++ b/site/src/lib/Nav.svelte @@ -11,9 +11,9 @@ @@ -27,13 +27,4 @@ flex-wrap: wrap; font-size: 1.1em; } - nav > a { - padding: 0 4pt; - background-color: rgba(255, 255, 255, 0.1); - border-radius: 3pt; - transition: 0.2s; - } - nav > a[aria-current='page'] { - color: mediumseagreen; - } diff --git a/site/src/routes/+layout.svelte b/site/src/routes/+layout.svelte index 007d3088..aa3ac0f6 100644 --- a/site/src/routes/+layout.svelte +++ b/site/src/routes/+layout.svelte @@ -1,5 +1,6 @@ @@ -33,12 +39,19 @@ -