prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Archive version 0.1.1 on Zenodo and get a DOI
  There is a partnership between [Zenodo](https://zenodo.org/) and GitHub that allows Zenodo to archive releases and [make code citable](https://guides.github.com/activities/citable-code/).  Zenodo can then mint a digital object identifier (DOI) that would make that version of PlasmaPy citable.  We can also get a persistent doi that would alway refers to the most recent version.  We should make archiving our release on Zenodo part of our regular release process.  [SunPy](https://doi.org/10.5281/zenodo.591887) has done this already.  
  
  - [x] Link the PlasmaPy organization/repository to Zenodo
  - [ ] Archive version 0.1 on Zenodo and get a persistent DOI and a release DOI
  - [ ] Put a badge on our main README.md for our DOI
  - [ ] Put the persistent DOI in our docs and on our main website, along with instructions on how to cite the code
  - [ ] Document instructions on how to put a release on Zenodo in our release guide.
  
  
  
  
  </issue>
  <code>
  [start of plasmapy/__init__.py]
  1 # Licensed under a 3-clause BSD style license - see LICENSE.rst
  2 
  3 # Packages may add whatever they like to this file, but
  4 # should keep this content at the top.
  5 # ----------------------------------------------------------------------------
  6 from ._base_init import *
  7 # ----------------------------------------------------------------------------
  8 
  9 # Enforce Python version check during package import.
  10 # This is the same check as the one at the top of setup.py
  11 import sys
  12 
  13 __name__ = "plasmapy"
  14 
  15 __doc__ = ("A community-developed and community-driven open source "
  16            "core Python package for plasma physics.")
  17 
  18 
  19 class UnsupportedPythonError(Exception):
  20     pass
  21 
  22 
  23 if sys.version_info < tuple((int(val) for val in "3.6".split('.'))):
  24     raise UnsupportedPythonError("plasmapy does not support Python < {}".format(3.6))
  25 
  26 if not _ASTROPY_SETUP_:
  27     # For egg_info test builds to pass, put package imports here.
  28     from . import atomic
  29     from . import classes
  30     from . import constants
  31     from . import diagnostics
  32     from . import mathematics
  33     from . import physics
  34     from . import utils
  35 
  36 def online_help(query):
  37     """
  38     Search the online PlasmaPy documentation for the given query from plasmapy.org
  39     Opens the results in the default web browser.
  40     Requires an active Internet connection.
  41     Redirects to Astropy.units in case of query 'unit' or 'units'
  42 
  43     Parameters
  44     ----------
  45     query : str
  46         The search query.
  47     """
  48     from urllib.parse import urlencode
  49     import webbrowser
  50 
  51     url = ('http://docs.plasmapy.org/en/stable/search.html?'
  52            '{0}&check_keywords=yes&area=default').format(urlencode({'q': query}))
  53 
  54     if(query.lower() in ('unit', 'units')):
  55         url = 'http://docs.astropy.org/en/stable/units/'
  56 
  57     webbrowser.open(url)
  58 
  59 __citation__ = """@misc{plasmapy_community_2018_1238132,
  60   author       = {PlasmaPy Community and
  61                   Murphy, Nicholas A. and
  62                   Leonard, Andrew J. and
  63                   Sta\'nczak, Dominik and
  64                   Kozlowski, Pawel M. and
  65                   Langendorf, Samuel J. and
  66                   Haggerty, Colby C. and
  67                   Beckers, Jasper P. and
  68                   Mumford, Stuart J. and
  69                   Parashar, Tulasi N. and
  70                   Huang, Yi-Min},
  71   title        = {{PlasmaPy: an open source community-developed 
  72                    Python package for plasma physics}},
  73   month        = apr,
  74   year         = 2018,
  75   doi          = {10.5281/zenodo.1238132},
  76   url          = {https://doi.org/10.5281/zenodo.1238132}
  77 }"""
  78
  [end of plasmapy/__init__.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/plasmapy/__init__.py b/plasmapy/__init__.py
  --- a/plasmapy/__init__.py
  +++ b/plasmapy/__init__.py
  @@ -57,7 +57,7 @@
       webbrowser.open(url)
   
   __citation__ = """@misc{plasmapy_community_2018_1238132,
  -  author       = {PlasmaPy Community and
  +  author       = {{PlasmaPy Community} and
                     Murphy, Nicholas A. and
                     Leonard, Andrew J. and
                     Sta\'nczak, Dominik and
  
verification_info: {"golden_diff": "diff --git a/plasmapy/__init__.py b/plasmapy/__init__.py\n--- a/plasmapy/__init__.py\n+++ b/plasmapy/__init__.py\n@@ -57,7 +57,7 @@\n     webbrowser.open(url)\n \n __citation__ = \"\"\"@misc{plasmapy_community_2018_1238132,\n-  author       = {PlasmaPy Community and\n+  author       = {{PlasmaPy Community} and\n                   Murphy, Nicholas A. and\n                   Leonard, Andrew J. and\n                   Sta\\'nczak, Dominik and\n", "issue": "Archive version 0.1.1 on Zenodo and get a DOI\nThere is a partnership between [Zenodo](https://zenodo.org/) and GitHub that allows Zenodo to archive releases and [make code citable](https://guides.github.com/activities/citable-code/).  Zenodo can then mint a digital object identifier (DOI) that would make that version of PlasmaPy citable.  We can also get a persistent doi that would alway refers to the most recent version.  We should make archiving our release on Zenodo part of our regular release process.  [SunPy](https://doi.org/10.5281/zenodo.591887) has done this already.  \r\n\r\n- [x] Link the PlasmaPy organization/repository to Zenodo\r\n- [ ] Archive version 0.1 on Zenodo and get a persistent DOI and a release DOI\r\n- [ ] Put a badge on our main README.md for our DOI\r\n- [ ] Put the persistent DOI in our docs and on our main website, along with instructions on how to cite the code\r\n- [ ] Document instructions on how to put a release on Zenodo in our release guide.\r\n\r\n\r\n\n", "before_files": [{"content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\n# Packages may add whatever they like to this file, but\n# should keep this content at the top.\n# ----------------------------------------------------------------------------\nfrom ._base_init import *\n# ----------------------------------------------------------------------------\n\n# Enforce Python version check during package import.\n# This is the same check as the one at the top of setup.py\nimport sys\n\n__name__ = \"plasmapy\"\n\n__doc__ = (\"A community-developed and community-driven open source \"\n           \"core Python package for plasma physics.\")\n\n\nclass UnsupportedPythonError(Exception):\n    pass\n\n\nif sys.version_info < tuple((int(val) for val in \"3.6\".split('.'))):\n    raise UnsupportedPythonError(\"plasmapy does not support Python < {}\".format(3.6))\n\nif not _ASTROPY_SETUP_:\n    # For egg_info test builds to pass, put package imports here.\n    from . import atomic\n    from . import classes\n    from . import constants\n    from . import diagnostics\n    from . import mathematics\n    from . import physics\n    from . import utils\n\ndef online_help(query):\n    \"\"\"\n    Search the online PlasmaPy documentation for the given query from plasmapy.org\n    Opens the results in the default web browser.\n    Requires an active Internet connection.\n    Redirects to Astropy.units in case of query 'unit' or 'units'\n\n    Parameters\n    ----------\n    query : str\n        The search query.\n    \"\"\"\n    from urllib.parse import urlencode\n    import webbrowser\n\n    url = ('http://docs.plasmapy.org/en/stable/search.html?'\n           '{0}&check_keywords=yes&area=default').format(urlencode({'q': query}))\n\n    if(query.lower() in ('unit', 'units')):\n        url = 'http://docs.astropy.org/en/stable/units/'\n\n    webbrowser.open(url)\n\n__citation__ = \"\"\"@misc{plasmapy_community_2018_1238132,\n  author       = {PlasmaPy Community and\n                  Murphy, Nicholas A. and\n                  Leonard, Andrew J. and\n                  Sta\\'nczak, Dominik and\n                  Kozlowski, Pawel M. and\n                  Langendorf, Samuel J. and\n                  Haggerty, Colby C. and\n                  Beckers, Jasper P. and\n                  Mumford, Stuart J. and\n                  Parashar, Tulasi N. and\n                  Huang, Yi-Min},\n  title        = {{PlasmaPy: an open source community-developed \n                   Python package for plasma physics}},\n  month        = apr,\n  year         = 2018,\n  doi          = {10.5281/zenodo.1238132},\n  url          = {https://doi.org/10.5281/zenodo.1238132}\n}\"\"\"\n", "path": "plasmapy/__init__.py"}]}