sunpy/sunpy — pull request #268 by mattearnshaw (2012-08-21 22:43:35+00:00)
Title: Map Manager

Add a map manager, a weak referenced set of maps created by the make_map method (or any other method decorated with the manage_maps decorator).

This will be useful for prompting the user to import existing plots into the GUI.

Example

>>> import sunpy
>>> sunpy.map_manager
set([])
>>> my_map = sunpy.make_map(sunpy.AIA_171_IMAGE);
>>> sunpy.map_manager
set([])
>>> del a
>>> sunpy.map_manager
set([])