diff --git a/abipy/examples/plot/plot_qha_2d.py b/abipy/examples/plot/plot_qha_2d.py index c01cf849a..5b72b626c 100755 --- a/abipy/examples/plot/plot_qha_2d.py +++ b/abipy/examples/plot/plot_qha_2d.py @@ -21,9 +21,9 @@ #gsr_paths = [[f"scale_{s1}_{s3}/out_GSR.nc" for s3 in strains_c] for s1 in strains_a] gsr_paths = [[os.path.join(root, f"scale_{s1}_{s3}/out_GSR_DDB") for s3 in strains_c] for s1 in strains_a] -dos_paths = [[os.path.join(root, f"scale_{s1}_{s3}/out_PHDOS.nc") for s3 in strains_c1] for s1 in strains_a1] +phdos_paths = [[os.path.join(root, f"scale_{s1}_{s3}/out_PHDOS.nc") for s3 in strains_c1] for s1 in strains_a1] -qha = QHA_2D.from_files(gsr_paths, dos_paths, gsr_file="DDB") +qha = QHA_2D.from_files(gsr_paths, phdos_paths, gsr_file="DDB") #%% qha.plot_energies() diff --git a/abipy/examples/plot/plot_qha_vzsisa.py b/abipy/examples/plot/plot_qha_vzsisa.py index bc27d85fa..70a059be3 100755 --- a/abipy/examples/plot/plot_qha_vzsisa.py +++ b/abipy/examples/plot/plot_qha_vzsisa.py @@ -21,9 +21,9 @@ gsr_paths = [os.path.join(root, "scale_{:d}_GSR.nc".format(s)) for s in strains] ddb_paths = [os.path.join(root, "scale_{:d}_GSR_DDB".format(s)) for s in strains] -dos_paths = [os.path.join(root, "scale_{:d}_PHDOS.nc".format(s)) for s in strains2] +phdos_paths = [os.path.join(root, "scale_{:d}_PHDOS.nc".format(s)) for s in strains2] -qha = Vzsisa.from_files_app_ddb(ddb_paths, dos_paths) +qha = Vzsisa.from_ddb_phdos_Files(ddb_paths, phdos_paths) tstart, tstop = 0, 800 #%% diff --git a/docs/conf.py b/docs/conf.py index 0a219415d..eb0306dc0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -143,7 +143,7 @@ def load_mod(filepath): sphinx_gallery_conf = { 'only_warn_on_example_error': True, - 'abort_on_example_error': False, + 'abort_on_example_error': True, #'log_level': {'backreference_missing': 'debug'}, 'log_level': {'backreference_missing': 'warning'}, #'log_level': {'backreference_missing': 'error'},