integrate.quad()
returns a tuple; deltahbarCO2 + 2*deltahbarH2O
is an integer, you are trying to subtract the var
tuple.
If you wanted just the integral y
of the integrate.quad()
result, use the first element of that tuple:
var = deltahbarCH4[0]
or use tuple assignment:
var, err = deltabarCH4