🎨 Format Python code with psf/black

This commit is contained in:
ndem0
2024-02-09 11:25:00 +00:00
committed by Nicola Demo
parent 591aeeb02b
commit cbb43a5392
64 changed files with 1323 additions and 955 deletions

View File

@@ -1,4 +1,5 @@
""" Module for Equation. """
from .equation_interface import EquationInterface
@@ -15,12 +16,14 @@ class Equation(EquationInterface):
:type equation: Callable
"""
if not callable(equation):
raise ValueError('equation must be a callable function.'
'Expected a callable function, got '
f'{equation}')
raise ValueError(
"equation must be a callable function."
"Expected a callable function, got "
f"{equation}"
)
self.__equation = equation
def residual(self, input_, output_, params_ = None):
def residual(self, input_, output_, params_=None):
"""
Residual computation of the equation.