In previous implementation it sometimes yields an error because the self.number is an int while the str expects it to be a str. Now it uses f-strings instead which makes it more readable and the attributes are cast to a string-representation automatically. I also slightly changed the formatting to make it more concise. It now prints as <PhreeqPython.Solution number 0>
This especially solves issue we experience when we use the PhreeqPythonSolutions in a DataFrame as we do in our tool HGC
In previous implementation it sometimes yields an error because the self.number is an int while the str expects it to be a str. Now it uses f-strings instead which makes it more readable and the attributes are cast to a string-representation automatically. I also slightly changed the formatting to make it more concise. It now prints as
<PhreeqPython.Solution number 0>
This especially solves issue we experience when we use the
PhreeqPython
Solution
s in aDataFrame
as we do in our toolHGC