Mar-24-2022, 10:17 AM
Line 2 is 219 characters long. It is way too long. A good rule of thumb is that a line should not exceed 70 or 80 characters. In Python, one can achieve this by enclosing long expressions in parentheses, for example
idef function_gam(et, y3, phb, kj, y7): ht = ( kj[0] * et * cos(y3) / sqrt(phb) + kj[1] * -et0 * sin(y3) / sqrt(phb) + y7 * sqrt(1 / phb) * et0 * sin(y3) + funct_labt(y3, kj[1], y7, kj[0]) * (sqrt(1 / phb) * ( 1 + et * cos(y3) * (1 + et * cos(y3)**2) / phb**2))) return htThis line could perhaps be further divided in several lines.