prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Add missing ASDF schemas for new coordinate frames in 1.1
  Whoops
  
  </issue>
  <code>
  [start of sunpy/io/special/asdf/tags/coordinates/frames.py]
  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 of sunpy/io/special/asdf/tags/coordinates/frames.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
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"}]}