Skip to content

Commit

Permalink
Refactor create_water_oil
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartek Florczyk Vik (CCI RPT RES1) committed Aug 7, 2024
1 parent 30df7e5 commit 9303e6d
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 223 deletions.
4 changes: 2 additions & 2 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ equivalent to the code lines above (except for capillary pressure) is then:

.. code-block:: python
from pyscal import PyscalFactory
from pyscal import create_water_oil
params = dict(swl=0.05, sorw=0.03, h=0.1, nw=2.1, krwend=0.6,
now=2.5, kroend=0.9, tag="Foobarites")
wo = PyscalFactory.create_water_oil(params)
wo = create_water_oil(params)
print(wo.SWOF())
Note that parameter names to factory functions are case *insensitive*, while
Expand Down
2 changes: 1 addition & 1 deletion src/pyscal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ def getLogger_pyscal(
from .gaswater import GasWater # noqa
from .scalrecommendation import SCALrecommendation # noqa
from .pyscallist import PyscalList # noqa
from .factory import PyscalFactory # noqa
from .factory import PyscalFactory, create_water_oil # noqa
Loading

0 comments on commit 9303e6d

Please sign in to comment.