diff --git a/src/pyscal/gasoil.py b/src/pyscal/gasoil.py index 5630aba6..eefa4c7c 100644 --- a/src/pyscal/gasoil.py +++ b/src/pyscal/gasoil.py @@ -153,7 +153,7 @@ def __init__( ) sg_list.sort() self.table = pd.DataFrame(sg_list, columns=["SG"]) - self.table["sgint"] = list(map(round, self.table["SG"] * SWINTEGERS)) + self.table["sgint"] = list(map(round, self.table["SG"] * SWINTEGERS * 10)) self.table = self.table.drop_duplicates("sgint") # Now sg=1-sorg-swl might be accidentally dropped, so make sure we diff --git a/src/pyscal/wateroil.py b/src/pyscal/wateroil.py index 07cb0d2d..e4be7557 100644 --- a/src/pyscal/wateroil.py +++ b/src/pyscal/wateroil.py @@ -162,7 +162,7 @@ def __init__( # Ensure that we do not have sw values that are too close # to each other, determined rougly by the distance 1/10000 - self.table["swint"] = list(map(round, self.table["SW"] * SWINTEGERS)) + self.table["swint"] = list(map(round, self.table["SW"] * SWINTEGERS * 10)) self.table = self.table.drop_duplicates("swint") # Now, sw=1-sorw might be accidentaly dropped, so make sure we diff --git a/src/pyscal/wateroilgas.py b/src/pyscal/wateroilgas.py index 4a0cb763..d60856f0 100644 --- a/src/pyscal/wateroilgas.py +++ b/src/pyscal/wateroilgas.py @@ -164,7 +164,7 @@ def SOF3(self, header: bool = True, dataincommentrow: bool = True) -> str: .bfill() .reset_index() ) - sof3table["soint"] = list(map(round, sof3table["SO"] * SWINTEGERS)) + sof3table["soint"] = list(map(round, sof3table["SO"] * SWINTEGERS * 10)) sof3table = sof3table.drop_duplicates("soint") # The 'so' column has been calculated from floating point numbers