Closed pernak18 closed 2 years ago
From Karen in Slack:
I can get the code to modify the coefficients and calculate fluxes with those coefficients; the modified fluxes are in the right and seem to make at least qualitative sense. But I cannot get correct total cost or deltaCost for the modified fluxes. Instead I get exactly the same values as for the original g-points.
The problem I see comes after line 269 (
flux_compute.py
): on this line I use the combineBandsSglMethod to fill build a combinedDS variable that contains the modified fluxes. I pass in the name of the new flux file for the modified band as trialNC. I think this is working; butwhen I compute the cost function (with costFuncCompSgl, it seems the cost functions for each of the cot function variables are modified but not the total cost function or its delta. And try as I might I cannot find the line that prints out the individual cost function terms:
i believe this was addressed with ec11aef92a4020d32ca850699f13f17c5ea80685 by making a (deep) copy of the cost optimization object, rather than introducing the perturbations into the existing object