We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e91c151 commit c45b5ecCopy full SHA for c45b5ec
pyscal/wateroil.py
@@ -470,12 +470,12 @@ def set_endpoints_linearpart_krw(
470
# (these lists are never empty)
471
472
# Set krwend always (overrides krwmax if sorw=0)
473
- self.table.iloc[linear_section_indices[0]]["KRW"] = krwend
+ self.table.loc[linear_section_indices[0], "KRW"] = krwend
474
475
if len(linear_section_indices) > 1:
476
if krwmax is None:
477
krwmax = 1
478
- self.table.iloc[linear_section_indices[-1]]["KRW"] = krwmax
+ self.table.loc[linear_section_indices[-1], "KRW"] = krwmax
479
else:
480
if krwmax is not None:
481
logger.info("krwmax ignored when sorw is zero")
0 commit comments