prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Add missing ASDF schemas for new coordinate frames in 1.1
  Whoops
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `sunpy/io/special/asdf/tags/coordinates/frames.py`
  Content:
  ```
  1 import os
  2 import glob
  3 
  4 from astropy.io.misc.asdf.tags.coordinates.frames import BaseCoordType
  5 
  6 import sunpy.coordinates
  7 
  8 from ...types import SunPyType
  9 
  10 __all__ = ['SunPyCoordType']
  11 
  12 
  13 SCHEMA_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__),
  14                                            '..', '..',
  15                                            'schemas',
  16                                            'sunpy.org',
  17                                            'sunpy'))
  18 
  19 
  20 def _get_frames():
  21     """
  22     By reading the schema files, get the list of all the frames we can
  23     save/load.
  24     """
  25     search = os.path.join(SCHEMA_PATH, 'coordinates', 'frames', '*.yaml')
  26     files = glob.glob(search)
  27 
  28     names = []
  29     for fpath in files:
  30         path, fname = os.path.split(fpath)
  31         frame, _ = fname.split('-')
  32         exclude_schemas = []
  33         if frame not in exclude_schemas:
  34             names.append(frame)
  35 
  36     return names
  37 
  38 
  39 class SunPyCoordType(BaseCoordType, SunPyType):
  40     _tag_prefix = "coordinates/frames/"
  41     name = ["coordinates/frames/" + f for f in _get_frames()]
  42     types = [
  43         sunpy.coordinates.HeliographicCarrington,
  44         sunpy.coordinates.HeliographicStonyhurst,
  45         sunpy.coordinates.Heliocentric,
  46         sunpy.coordinates.Helioprojective,
  47     ]
  48     requires = ['sunpy', 'astropy>=3.1']
  49     version = "1.0.0"
  50 
  51     @classmethod
  52     def assert_equal(cls, old, new):
  53         assert isinstance(new, type(old))
  54
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/sunpy/io/special/asdf/tags/coordinates/frames.py b/sunpy/io/special/asdf/tags/coordinates/frames.py
  --- a/sunpy/io/special/asdf/tags/coordinates/frames.py
  +++ b/sunpy/io/special/asdf/tags/coordinates/frames.py
  @@ -3,7 +3,9 @@
   
   from astropy.io.misc.asdf.tags.coordinates.frames import BaseCoordType
   
  -import sunpy.coordinates
  +from sunpy.coordinates import frames
  +
  +sunpy_frames = list(map(lambda name: getattr(frames, name), frames.__all__))
   
   from ...types import SunPyType
   
  @@ -39,12 +41,7 @@
   class SunPyCoordType(BaseCoordType, SunPyType):
       _tag_prefix = "coordinates/frames/"
       name = ["coordinates/frames/" + f for f in _get_frames()]
  -    types = [
  -        sunpy.coordinates.HeliographicCarrington,
  -        sunpy.coordinates.HeliographicStonyhurst,
  -        sunpy.coordinates.Heliocentric,
  -        sunpy.coordinates.Helioprojective,
  -    ]
  +    types = sunpy_frames
       requires = ['sunpy', 'astropy>=3.1']
       version = "1.0.0"
  
verification_info: {"golden_diff": "diff --git a/sunpy/io/special/asdf/tags/coordinates/frames.py b/sunpy/io/special/asdf/tags/coordinates/frames.py\n--- a/sunpy/io/special/asdf/tags/coordinates/frames.py\n+++ b/sunpy/io/special/asdf/tags/coordinates/frames.py\n@@ -3,7 +3,9 @@\n \n from astropy.io.misc.asdf.tags.coordinates.frames import BaseCoordType\n \n-import sunpy.coordinates\n+from sunpy.coordinates import frames\n+\n+sunpy_frames = list(map(lambda name: getattr(frames, name), frames.__all__))\n \n from ...types import SunPyType\n \n@@ -39,12 +41,7 @@\n class SunPyCoordType(BaseCoordType, SunPyType):\n     _tag_prefix = \"coordinates/frames/\"\n     name = [\"coordinates/frames/\" + f for f in _get_frames()]\n-    types = [\n-        sunpy.coordinates.HeliographicCarrington,\n-        sunpy.coordinates.HeliographicStonyhurst,\n-        sunpy.coordinates.Heliocentric,\n-        sunpy.coordinates.Helioprojective,\n-    ]\n+    types = sunpy_frames\n     requires = ['sunpy', 'astropy>=3.1']\n     version = \"1.0.0\"\n", "issue": "Add missing ASDF schemas for new coordinate frames in 1.1\nWhoops\n", "before_files": [{"content": "import os\nimport glob\n\nfrom astropy.io.misc.asdf.tags.coordinates.frames import BaseCoordType\n\nimport sunpy.coordinates\n\nfrom ...types import SunPyType\n\n__all__ = ['SunPyCoordType']\n\n\nSCHEMA_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__),\n                                           '..', '..',\n                                           'schemas',\n                                           'sunpy.org',\n                                           'sunpy'))\n\n\ndef _get_frames():\n    \"\"\"\n    By reading the schema files, get the list of all the frames we can\n    save/load.\n    \"\"\"\n    search = os.path.join(SCHEMA_PATH, 'coordinates', 'frames', '*.yaml')\n    files = glob.glob(search)\n\n    names = []\n    for fpath in files:\n        path, fname = os.path.split(fpath)\n        frame, _ = fname.split('-')\n        exclude_schemas = []\n        if frame not in exclude_schemas:\n            names.append(frame)\n\n    return names\n\n\nclass SunPyCoordType(BaseCoordType, SunPyType):\n    _tag_prefix = \"coordinates/frames/\"\n    name = [\"coordinates/frames/\" + f for f in _get_frames()]\n    types = [\n        sunpy.coordinates.HeliographicCarrington,\n        sunpy.coordinates.HeliographicStonyhurst,\n        sunpy.coordinates.Heliocentric,\n        sunpy.coordinates.Helioprojective,\n    ]\n    requires = ['sunpy', 'astropy>=3.1']\n    version = \"1.0.0\"\n\n    @classmethod\n    def assert_equal(cls, old, new):\n        assert isinstance(new, type(old))\n", "path": "sunpy/io/special/asdf/tags/coordinates/frames.py"}], "after_files": [{"content": "import os\nimport glob\n\nfrom astropy.io.misc.asdf.tags.coordinates.frames import BaseCoordType\n\nfrom sunpy.coordinates import frames\n\nsunpy_frames = list(map(lambda name: getattr(frames, name), frames.__all__))\n\nfrom ...types import SunPyType\n\n__all__ = ['SunPyCoordType']\n\n\nSCHEMA_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__),\n                                           '..', '..',\n                                           'schemas',\n                                           'sunpy.org',\n                                           'sunpy'))\n\n\ndef _get_frames():\n    \"\"\"\n    By reading the schema files, get the list of all the frames we can\n    save/load.\n    \"\"\"\n    search = os.path.join(SCHEMA_PATH, 'coordinates', 'frames', '*.yaml')\n    files = glob.glob(search)\n\n    names = []\n    for fpath in files:\n        path, fname = os.path.split(fpath)\n        frame, _ = fname.split('-')\n        exclude_schemas = []\n        if frame not in exclude_schemas:\n            names.append(frame)\n\n    return names\n\n\nclass SunPyCoordType(BaseCoordType, SunPyType):\n    _tag_prefix = \"coordinates/frames/\"\n    name = [\"coordinates/frames/\" + f for f in _get_frames()]\n    types = sunpy_frames\n    requires = ['sunpy', 'astropy>=3.1']\n    version = \"1.0.0\"\n\n    @classmethod\n    def assert_equal(cls, old, new):\n        assert isinstance(new, type(old))\n", "path": "sunpy/io/special/asdf/tags/coordinates/frames.py"}]}