Skip to content

Commit

Permalink
using try/accept to deal with different versions of mpl
Browse files Browse the repository at this point in the history
  • Loading branch information
jgostick committed Oct 17, 2023
1 parent d8efaa2 commit 00551ab
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion openpnm/models/_doctxt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from matplotlib._docstring import Substitution
try:
from matplotlib._docstring import Substitution
except ModuleNotFoundError:
from matplotlib.docstring import Substitution

Check warning on line 4 in openpnm/models/_doctxt.py

View check run for this annotation

Codecov / codecov/patch

openpnm/models/_doctxt.py#L3-L4

Added lines #L3 - L4 were not covered by tests



__all__ = [
Expand Down
5 changes: 4 additions & 1 deletion openpnm/models/geometry/_geodocs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from matplotlib._docstring import Substitution
try:
from matplotlib._docstring import Substitution
except ModuleNotFoundError:
from matplotlib.docstring import Substitution

Check warning on line 4 in openpnm/models/geometry/_geodocs.py

View check run for this annotation

Codecov / codecov/patch

openpnm/models/geometry/_geodocs.py#L3-L4

Added lines #L3 - L4 were not covered by tests


__all__ = [
Expand Down
6 changes: 5 additions & 1 deletion openpnm/models/phase/_phasedocs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from matplotlib._docstring import Substitution
try:
from matplotlib._docstring import Substitution
except ModuleNotFoundError:
from matplotlib.docstring import Substitution

Check warning on line 4 in openpnm/models/phase/_phasedocs.py

View check run for this annotation

Codecov / codecov/patch

openpnm/models/phase/_phasedocs.py#L3-L4

Added lines #L3 - L4 were not covered by tests


__all__ = [
'_phasedocs',
Expand Down

0 comments on commit 00551ab

Please sign in to comment.