Skip to content

Commit

Permalink
abort on example error in gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
gmatteo committed Dec 19, 2024
1 parent 7f1f607 commit 9735a3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions abipy/examples/plot/plot_qha_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions abipy/examples/plot/plot_qha_vzsisa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

#%%
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down

0 comments on commit 9735a3d

Please sign in to comment.