From 4c9fdd41c709b913452e09c304aa590a76f5b520 Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Mon, 19 Jun 2023 10:32:20 -0600 Subject: [PATCH] [samples] Fix math deprecation --- samples/python/surface_chemistry/sofc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/python/surface_chemistry/sofc.py b/samples/python/surface_chemistry/sofc.py index f1387a06b52..0cfbb0e26b0 100644 --- a/samples/python/surface_chemistry/sofc.py +++ b/samples/python/surface_chemistry/sofc.py @@ -55,7 +55,7 @@ def show_coverages(s): def equil_OCV(gas1, gas2): return (-ct.gas_constant * gas1.T * - math.log(gas1['O2'].X / gas2['O2'].X) / (4.0*ct.faraday)) + math.log(gas1['O2'].X[0] / gas2['O2'].X[0]) / (4.0 * ct.faraday)) def NewtonSolver(f, xstart, C=0.0):