Skip to content

Commit c45b5ec

Browse files
authored
Fix issue with panda 2.0 (#397)
1 parent e91c151 commit c45b5ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyscal/wateroil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,12 +470,12 @@ def set_endpoints_linearpart_krw(
470470
# (these lists are never empty)
471471

472472
# Set krwend always (overrides krwmax if sorw=0)
473-
self.table.iloc[linear_section_indices[0]]["KRW"] = krwend
473+
self.table.loc[linear_section_indices[0], "KRW"] = krwend
474474

475475
if len(linear_section_indices) > 1:
476476
if krwmax is None:
477477
krwmax = 1
478-
self.table.iloc[linear_section_indices[-1]]["KRW"] = krwmax
478+
self.table.loc[linear_section_indices[-1], "KRW"] = krwmax
479479
else:
480480
if krwmax is not None:
481481
logger.info("krwmax ignored when sorw is zero")

0 commit comments

Comments
 (0)