Skip to content

Commit

Permalink
Revert "Modifications to get derivative of phase and amplitude for co…
Browse files Browse the repository at this point in the history
…mplex plots working. Consistent with WPF commit 136a928."

This reverts commit 1492c13.
  • Loading branch information
hayakawa16 committed Feb 16, 2024
1 parent 1492c13 commit a437e92
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Vts/Factories/ComputationFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a437e92

Please sign in to comment.