Source code for jarvis.tests.testfiles.db.test_figshare

from jarvis.db.figshare import data, get_ff_eneleast, get_wann_electron, get_wann_phonon, get_hk_tb
from jarvis.db.webpages import Webpage

[docs]def test_figshare_download(): data_2d = data(dataset="dft_2d") data_3d = data(dataset="dft_3d") data_ml = data(dataset="cfid_3d") data_ff = get_ff_eneleast() print("2d", len(data_2d)) print("3d", len(data_3d)) print("cfid3d", len(data_ml)) print("ff", len(data_ff)) assert (len(data_2d), len(data_3d), len(data_ml), len(data_ff)) == ( 1070, 36099, 35984, 3291, ) w, ef, atoms = get_wann_electron() hk = get_hk_tb(w=w) w, atoms = get_wann_phonon() w = Webpage(jid="JVASP-1002") info_mbj = w.get_dft_mbj_dielectric_function() info_opt = w.get_dft_semilocal_dielectric_function() info_pdos = w.get_dft_phonon_dos() info_edos = w.get_dft_electron_dos() k = w.list_keys()
# test_figshare_download()