From a437e928304bf1c3eb55f29085bfc7c29aa8c07c Mon Sep 17 00:00:00 2001 From: hayakawa Date: Fri, 16 Feb 2024 15:07:11 -0800 Subject: [PATCH] Revert "Modifications to get derivative of phase and amplitude for complex plots working. Consistent with WPF commit 136a928." This reverts commit 1492c13c69ba21b67f518f05b4e01062c58d117f. --- src/Vts/Factories/ComputationFactory.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Vts/Factories/ComputationFactory.cs b/src/Vts/Factories/ComputationFactory.cs index 6512fe154..d59b7a911 100644 --- a/src/Vts/Factories/ComputationFactory.cs +++ b/src/Vts/Factories/ComputationFactory.cs @@ -146,15 +146,8 @@ public static double[] ComputeReflectance( // new[] { op.Mua, op.Musp, op.G, op.N } //double[] optimizationParameters = GetOptimizationParameters(forwardSolver, solutionDomainType, independentAxisTypes); // will need this for inverse solver - if (IsComplexSolver(solutionDomainType) && forwardAnalysisType != ForwardAnalysisType.R) // complex derivative - { - // create a list of inputs (besides optical properties) that corresponds to the behavior of the function above - // create Complex derivative function with re/im and dre/dim in it - return func(independentValues) - .Concat(func.GetDerivativeFunc(forwardAnalysisType)(independentValues)).ToArray(); - } + // create a list of inputs (besides optical properties) that corresponds to the behavior of the function above - // prior code return forwardAnalysisType == ForwardAnalysisType.R ? func(independentValues) : func.GetDerivativeFunc(forwardAnalysisType)(independentValues);