Donut List Class

class astrodonut.donut_List.DonutList(donuts)[source]

Bases: object

Manages a collection of Donut objects and combines them into a single 2D model.

This class allows adding multiple donut models together, normalizing the result, and retrieving the combined image.

add_donut(donut)[source]

Add a new Donut model to the combined image.

Parameters:

donut (Donut) – A new Donut instance to be added.

Raises:

ValueError – If the shape of the donut model does not match the combined image.

combine()[source]

Combine all Donut models in the list into one by summing their intensity arrays.

get_combined()[source]

Retrieve the combined image of all Donuts.

Returns:

The combined 2D intensity model.

Return type:

numpy.ndarray

normalize()[source]

Normalize the combined image so that its maximum value is 1.