Skip to content

Commit

Permalink
evaluate coverage with Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-held committed Sep 25, 2022
1 parent 1093ec6 commit d43b0d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/cabinetry/visualize/plot_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# handling of matplotlib<3.6 (for Python 3.7)
if packaging.version.parse(mpl.__version__) < packaging.version.parse("3.6"):
MPL_STYLE = "seaborn-colorblind"
MPL_STYLE = "seaborn-colorblind" # pragma: no cover
else:
MPL_STYLE = "seaborn-v0_8-colorblind"

Expand Down
10 changes: 5 additions & 5 deletions src/cabinetry/visualize/plot_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

# handling of matplotlib<3.6 (for Python 3.7)
if packaging.version.parse(mpl.__version__) < packaging.version.parse("3.6"):
MPL_GEQ_36 = False # matplotlib version < 3.6
MPL_STYLE = "seaborn-colorblind"
MPL_GEQ_36 = False # pragma: no cover
MPL_STYLE = "seaborn-colorblind" # pragma: no cover
else:
MPL_GEQ_36 = True # matplotlib version >= 3.6
MPL_GEQ_36 = True
MPL_STYLE = "seaborn-v0_8-colorblind"


Expand Down Expand Up @@ -164,7 +164,7 @@ def ranking(
rect=[0, 0, 1.0, 1 - leg_space]
)
else:
layout = None # layout set below after figure creation instead
layout = None # pragma: no cover # layout set after figure creation instead

mpl.style.use(MPL_STYLE)
fig, ax_pulls = plt.subplots(
Expand Down Expand Up @@ -251,7 +251,7 @@ def ranking(
)

if not MPL_GEQ_36:
fig.tight_layout(rect=[0, 0, 1.0, 1 - leg_space])
fig.tight_layout(rect=[0, 0, 1.0, 1 - leg_space]) # pragma: no cover

utils._save_and_close(fig, figure_path, close_figure)
return fig
Expand Down

0 comments on commit d43b0d7

Please sign in to comment.