compound_region_to_list

gammapy.utils.regions.compound_region_to_list(region)[source]

Create list of regions from compound regions.

Parameters
regionsCompoundSkyRegion or SkyRegion

Compound sky region

Returns
regionslist of SkyRegion

List of regions.