Download analysis/code/shared/test_spreadsheet.py from ekwan16/MagNET: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/ekwan16/MagNET/resolve/fe222d1894afb2d954fe8d2e67e70731a006c8d2/analysis/code/shared/test_spreadsheet.py
- Command line
-
hf download hf://ekwan16/MagNET@fe222d1894afb2d954fe8d2e67e70731a006c8d2/analysis/code/shared/test_spreadsheet.py
-
curl -L -o test_spreadsheet.py https://huggingface.co/ekwan16/MagNET/resolve/fe222d1894afb2d954fe8d2e67e70731a006c8d2/analysis/code/shared/test_spreadsheet.py
406 Bytes
| import os | |
| import sys | |
| HERE = os.path.dirname(os.path.abspath(__file__)) | |
| sys.path.insert(0, HERE) | |
| import spreadsheet as S # noqa: E402 | |
| def test_site_atom_indices_single(): | |
| assert S.site_atom_indices("21") == [20] | |
| def test_site_atom_indices_multiple(): | |
| assert S.site_atom_indices("17,19") == [16, 18] | |
| def test_site_atom_indices_accepts_int_input(): | |
| assert S.site_atom_indices(21) == [20] | |