/usr/local/lib/python3.8/dist-packages/jax_galsim/gsobject.py in tree_unflatten(cls, aux_data, children)
556 def tree_unflatten(cls, aux_data, children):
557 """Recreates an instance of the class from flatten representation"""
--> 558 return cls(**(children[0]), **aux_data)
Here a report on an catalog of Gaussian profiles creation and a simple vmap crash.
gives
leads to
/usr/local/lib/python3.8/dist-packages/jax_galsim/gaussian.py in init(self, half_light_radius, sigma, fwhm, flux, gsparams) 64 super().init(sigma=sigma, flux=flux, gsparams=gsparams) 65 ---> 66 self._sigsq = self.sigma*2 67 self._inv_sigsq = 1.0 / self._sigsq 68 self._norm = self.flux self._inv_sigsq * Gaussian._inv_twopi
TypeError: unsupported operand type(s) for ** or pow(): 'object' and 'int'