Skip to content

Commit 359dfae

Browse files
committed
add test dep pytest-markdown-docs to test python code fences in markdown/svx docs
1 parent 5405005 commit 359dfae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

site/src/routes/how-to-use/+page.svx

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ pip install matbench-discovery
1010

1111
Here's an example script of how to download the training and test set files for training a new model, recording the results and submitting them via pull request to this benchmark:
1212

13-
```py
13+
<!-- TODO remove notest meta key once repo is public and file can be downloaded without token -->
14+
```py notest
1415
from matbench_discovery.data import load_train_test
16+
from matbench_discovery.data import df_wbm
1517

1618
df_wbm = load_train_test("wbm-summary", version="v1.0.0")
1719

18-
print(df_wbm.shape)
19-
>>> (256963, 17)
20+
assert df_wbm.shape == (256963, 17)
2021

21-
print(list(df_wbm))
22-
>>> ['formula', 'n_sites', 'volume', 'uncorrected_energy', 'e_form_per_atom_wbm', 'e_hull_wbm', 'bandgap_pbe', 'uncorrected_energy_from_cse', 'e_correction_per_atom_legacy', 'e_correction_per_atom_mp2020', 'e_above_hull_uncorrected_ppd_mp', 'e_above_hull_mp2020_corrected_ppd_mp', 'e_above_hull_legacy_corrected_ppd_mp', 'e_form_per_atom_uncorrected', 'e_form_per_atom_mp2020_corrected', 'e_form_per_atom_legacy_corrected', 'wyckoff_spglib']
22+
assert list(df_wbm) == ['formula', 'n_sites', 'volume', 'uncorrected_energy', 'e_form_per_atom_wbm', 'e_hull_wbm', 'bandgap_pbe', 'uncorrected_energy_from_cse', 'e_correction_per_atom_legacy', 'e_correction_per_atom_mp2020', 'e_above_hull_uncorrected_ppd_mp', 'e_above_hull_mp2020_corrected_ppd_mp', 'e_above_hull_legacy_corrected_ppd_mp', 'e_form_per_atom_uncorrected', 'e_form_per_atom_mp2020_corrected', 'e_form_per_atom_legacy_corrected', 'wyckoff_spglib']
2323
```
2424

2525
Column glossary

0 commit comments

Comments
 (0)