From acd6401259d515982a0b460fbae4546e263a201a Mon Sep 17 00:00:00 2001 From: Gilberto RUIZ JIMENEZ Date: Thu, 20 Nov 2025 13:43:00 +0100 Subject: [PATCH] style(ProblemFunction): add comment blocks to explain the behavior of _compute_output and _comput_jacobian Signed-off-by: Gilberto RUIZ JIMENEZ --- src/gemseo/algos/problem_function.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gemseo/algos/problem_function.py b/src/gemseo/algos/problem_function.py index 2f06061223..38c00cc0fd 100644 --- a/src/gemseo/algos/problem_function.py +++ b/src/gemseo/algos/problem_function.py @@ -206,6 +206,10 @@ class ProblemFunction(MDOFunction, Serializable): Returns: The output value. """ + # The lines below implement function compositions using a for-loop. + # For instance, unnormalize ``input_value``, then evaluate the original + # ``MDOFunction``. The output value of a function becomes the input value of + # the next function. for func in self._output_evaluation_sequence: input_value = func(input_value) @@ -220,6 +224,10 @@ class ProblemFunction(MDOFunction, Serializable): Returns: The Jacobian. """ + # The lines below implement function compositions using a for-loop. + # For instance, unnormalize ``input_value``, then evaluate the original + # ``MDOFunction``. The output value of a function becomes the input value of + # the next function. for func in self._jacobian_evaluation_sequence: input_value = func(input_value) -- GitLab