return abs(mean_Tm * entropy / enthalpy)
if enthalpy == 0:
return 0
else:
return abs(mean_Tm * entropy / enthalpy)
Thanks for pointing this out!
I have made a change to the code to avoid the “divide by zero” warning: https://github.com/hackingmaterials/matminer/pull/407
Rather than returning “0” in the case of enthalpy == 0, I use a very small positive value of enthalpy to better emulate the limit of Omega as enthalpy approaches 0 (positive infinity).
Best,
Logan
PS. If you’d like to make these changes yourself, I would be happy to help you with the GitHub pull request system.
--
You received this message because you are subscribed to the Google Groups "matminer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to matminer+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/matminer/2c876d9c-cc12-4b37-b230-d45659ba8b23%40googlegroups.com.