ProfileMorphology#
- class scarlet2.ProfileMorphology(size, ellipticity=None, shape=None)[source]#
Bases:
MorphologyBase class for morphologies based on a radial profile
- ellipticity: (None, <function array at 0x738a404e03a0>)#
Ellipticity of the profile
- f(r2)[source]#
Radial profile function
- Parameters:
r2 (
floatorarray) – Radius (distance from the center) squared
- get(name=None)#
Get parameter(s) from this module
- Parameters:
name (
str, optional) – Name of parameter. If not set, returns all parameters.- Returns:
requested data arrays for parameters
- Return type:
dict
- property parameters#
Parameters defined for this module
- Returns:
name: (node, param) mapping for all parameters
- Return type:
dict
- set(values)#
Set parameter(s) from this module with values
- Parameters:
values (
dict[str,jnp.array]) – values to replace parameters with, identified by their name- Returns:
new module with parameter(s) replaced by values
- Return type:
- property shape#
Shape of the bounding box for the profile.
If not set during __init__, uses a square box with an odd number of pixels not smaller than 10*size.