Skip to content

Commit 0239b19

Browse files
authored
Merge pull request #3010 from PMEAL/dev
Merging dev into release #patch
2 parents e85c654 + 3f80b55 commit 0239b19

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
-----
88

9-
> VERSION 3.0 of OpenPNM is now out. All the [examples on the website](https://openpnm.org/_examples/index.html) are now using the features and idioms of V3. For a description of the main changes please see our [recent blog post](http://pmeal.com/posts/2022-10-10-notebook-post/).
10-
119
# Overview of OpenPNM
1210

1311
OpenPNM is a comprehensive framework for performing pore network simulations of porous materials.

openpnm/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.5.3.dev0'
1+
__version__ = '3.5.3.dev4'

openpnm/algorithms/_drainage.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,14 @@ def apply_trapping(self):
254254
self['throat.invasion_pressure'][self['throat.trapped']] = np.inf
255255
self['pore.invasion_sequence'][self['pore.trapped']] = -1
256256
self['throat.invasion_sequence'][self['throat.trapped']] = -1
257+
Pmask = self['pore.invasion_sequence'] < 0
258+
Tmask = self['throat.invasion_sequence'] < 0
259+
self['pore.invasion_sequence'] = \
260+
self['pore.invasion_sequence'].astype(float)
261+
self['pore.invasion_sequence'][Pmask] = np.inf
262+
self['throat.invasion_sequence'] = \
263+
self['throat.invasion_sequence'].astype(float)
264+
self['throat.invasion_sequence'][Tmask] = np.inf
257265

258266
def pc_curve(self, pressures=None):
259267
if pressures is None:

openpnm/visualization/_plottools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,5 +863,5 @@ def set_mpl_style(): # pragma: no cover
863863
plt.rc('figure', **figure_props)
864864
plt.rc('image', **image_props)
865865

866-
import matplotlib_inline
867-
matplotlib_inline.backend_inline.set_matplotlib_formats('retina')
866+
# import matplotlib_inline
867+
# matplotlib_inline.backend_inline.set_matplotlib_formats('retina')

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 3.5.3.dev0
2+
current_version = 3.5.3.dev4
33
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\.(?P<release>\D+)(?P<build>\d+)?
44
serialize = {major}.{minor}.{patch}.{release}{build}
55

0 commit comments

Comments
 (0)