Skip to content

Commit

Permalink
updated comments, libecl to resdata
Browse files Browse the repository at this point in the history
  • Loading branch information
lilbe66 committed May 10, 2024
1 parent dbbda58 commit c54045c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/scripts/summaryplot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SUMMARYPLOT
===========

``summaryplot`` is a command line utility to generate plots from Eclipse
simulations, based on `libecl <http://github.com/equinor/libecl>`_
simulations, based on `resdata <http://github.com/equinor/resdata>`_
for processing Eclipse output files and
`matplotlib <http://matplotlib.sourceforge.net>`_ for plotting.

Expand Down
2 changes: 1 addition & 1 deletion src/subscript/check_swatinit/check_swatinit.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def qc_flag(qc_frame: pd.DataFrame) -> pd.DataFrame:

contact = "OWC" if "OWC" in qc_frame else "GWC"

# Eclipse and libecl does not calculate cell centres to the same decimals.
# Eclipse and resdata does not calculate cell centres to the same decimals.
# Add some tolerance when testing towards fluid contacts.
contacttolerance = 1e-4

Expand Down
6 changes: 3 additions & 3 deletions src/subscript/restartthinner/restartthinner.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
def find_resdata_app(toolname: str) -> str:
"""Locate path of apps in resdata.
These have varying suffixes due through the history of libecl Makefiles.
These have varying suffixes due through the history of resdata Makefiles.
Depending on libecl-version, it has the .x or the .c.x suffix
Depending on resdata-version, it has the .x or the .c.x suffix
We prefer .x.
Returns:
Expand Down Expand Up @@ -75,7 +75,7 @@ def rd_repacker(rstfilename: str, slicerstindices: list, quiet: bool) -> None:
modify the original filename.
"""
out = " >/dev/null" if quiet else ""
# Error early if libecl tools are not available
# Error early if resdata tools are not available
try:
find_resdata_app("rd_unpack")
find_resdata_app("rd_pack")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_check_swatinit.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ def test_reek(tmp_path, mocker):
assert Path("volplot.png").exists()

# pylint: disable=no-member # false positive on Pandas dataframe
# Check that we never get -1e20 from libecl in any data:
# Check that we never get -1e20 from resdata in any data:
assert np.isclose(qc_frame.select_dtypes("number").min().min(), -7097, atol=1)
assert np.isclose(qc_frame.select_dtypes("number").max().max(), 5938824, atol=1)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_check_swatinit_simulators.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def test_swatinit_less_than_1_below_contact(simulator, tmp_path):
assert np.isclose(qc_frame["PC_SCALING"][0], 1.0)
assert np.isclose(qc_frame["PC"], 0)
else:
# E100 will not report a PPCW in this case, libecl gives -1e20,
# E100 will not report a PPCW in this case, resdata gives -1e20,
# which becomes a NaN through res2df and then NaN columns are dropped.
if "PPCW" in qc_frame:
assert pd.isnull(qc_frame["PPCW"][0])
Expand Down

0 comments on commit c54045c

Please sign in to comment.