Donut List Class¶
- class astrodonut.donut_List.DonutList(donuts)[source]¶
Bases:
objectManages 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.