Helge Posted January 26 Share Posted January 26 I am having trouble retrieving the fugacity for CO2(g) with python. I provided the scripts. For this calcuation I used thermo.tdat In the resultsfile 0400.out you read fugacity(CO2(g)) <GWBplugin.c_double_Array_1 object at 0x0000020F80CCAD40> Any hint is appreciated. Best regards, Helge 0400_GWB.out 0400.py 0400.rea Quote Link to comment Share on other sites More sharing options...
Jia Wang Posted January 26 Share Posted January 26 Hello Helge, The results command always return an array, even if there is only one value. To retrieve the fugacity value from the array, you can use the index operator ("[0]") like you have for the pH and concentrations. Best, Jia Quote Link to comment Share on other sites More sharing options...
Helge Posted January 29 Author Share Posted January 29 It works. Thank you very much 🙂 Helge Quote Link to comment Share on other sites More sharing options...
Jia Wang Posted January 29 Share Posted January 29 You're welcome. I am glad that helped. Best, Jia Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.