Skip to content

Commit

Permalink
During initial flux-only fitting (forced phot), use Ceres optimizer, …
Browse files Browse the repository at this point in the history
…not the DenseConstrainedOptimizer we use elsewhere.
  • Loading branch information
dstndstn committed Sep 3, 2020
1 parent 6e63294 commit b2b6499
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions py/legacypipe/oneblob.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,9 @@ def _fit_fluxes(self, cat, tims, bands, fitcat=None):
# Images for this band
btims = [tim for tim in tims if tim.band == b]
btr = self.tractor(btims, fitcat)
ceres_block = 8
from tractor.ceres_optimizer import CeresOptimizer
btr.optimizer = CeresOptimizer(BW=ceres_block, BH=ceres_block)
btr.optimize_forced_photometry(shared_params=False, wantims=False)
for src in fitcat:
src.thawAllParams()
Expand Down

0 comments on commit b2b6499

Please sign in to comment.