Right now you can't use the convenient fit function on Scatterers objects.
This is because hp.inference.interface.parameterize_scatterer calls hp.scattering.scatterer.scatterer._interpret_parameters, which was changed in #279 to colons in parameter names as special characters to denote dictionaries or xarrays of parameter values. Unfortunately hp.scattering.scatterer.Scatterers.parameters also uses colons to denote different particles within a Scatterers object. This hadn't been noticed as a problem because _interpret_parameters is mostly used in from_parameters, and Scatterers defines their own.
Right now you can't use the convenient
fit
function onScatterers
objects.This is because
hp.inference.interface.parameterize_scatterer
callshp.scattering.scatterer.scatterer._interpret_parameters
, which was changed in #279 to colons in parameter names as special characters to denote dictionaries or xarrays of parameter values. Unfortunatelyhp.scattering.scatterer.Scatterers.parameters
also uses colons to denote different particles within aScatterers
object. This hadn't been noticed as a problem because_interpret_parameters
is mostly used infrom_parameters
, andScatterers
defines their own.