Fitting Models with a random subset: clunky syntax
Bug #1214047 reported by
Jerome Fung
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HoloPy |
Fix Committed
|
Low
|
Unassigned |
Bug Description
Specifying a Model to fit to a random subset of a hologram currently requires passing an ImageSchema to the schema_overlay kwarg in the Model constructor:
model = Model(par_s, Mie.calc_holo,
(see lines 47--50 of the attached script).
This is both clunky (consider a use_random_fraction kwarg to the Model constructor), and also requires re-specifying the origin if we're fitting to a subimaged target hologram.
Related branches
Changed in holopy: | |
status: | New → Fix Committed |
To post a comment you must log in.