Skip to content

Commit

Permalink
pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Dec 10, 2017
1 parent f573d04 commit c2613ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions sunpy/net/dataretriever/sources/goes.py
Expand Up @@ -68,14 +68,13 @@ def _get_time_for_url(self, urls):
if int(datestamp) < 990115:
start = datetime.datetime.strptime(datestamp, "%y%m%d")
else:
start= datetime.datetime.strptime(datestamp, "%Y%m%d")
start = datetime.datetime.strptime(datestamp, "%Y%m%d")

almost_day = datetime.timedelta(days=1, milliseconds=-1)
times.append(TimeRange(start, start+almost_day))

return times


def _get_url_for_timerange(self, timerange, **kwargs):
"""
Returns a URL to the GOES data for the specified date.
Expand Down
1 change: 1 addition & 0 deletions sunpy/net/dataretriever/tests/test_goes_ud.py
Expand Up @@ -111,6 +111,7 @@ def test_fido(time, instrument):
response = Fido.fetch(qr)
assert len(response) == qr._numfile


@given(goes_time())
def test_time_for_url(time):
time = time.start.date().strftime("%Y/%m/%d")
Expand Down

0 comments on commit c2613ba

Please sign in to comment.