Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshempelmann committed Jan 7, 2019
1 parent 0844b51 commit 24ce042
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions eggshell/eo/gdal_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def GetOutputDriversFor(filename):
for i in range(gdal.GetDriverCount()):
drv = gdal.GetDriver(i)
if (drv.GetMetadataItem(gdal.DCAP_CREATE) is not None or
drv.GetMetadataItem(gdal.DCAP_CREATECOPY) is not None) and
drv.GetMetadataItem(gdal.DCAP_RASTER) is not None:
drv.GetMetadataItem(gdal.DCAP_CREATECOPY) is not None) and
drv.GetMetadataItem(gdal.DCAP_RASTER) is not None:
if len(ext) > 0 and DoesDriverHandleExtension(drv, ext):
drv_list.append(drv.ShortName)
else:
Expand Down
2 changes: 1 addition & 1 deletion eggshell/nc/nc_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def write_fileinfo(resource, filepath=False):
# id0_url = 'https://api.planet.com/data/v1/item-types/{}/items/{}/assets'.format(item_type, id0)
#
# # Returns JSON metadata for assets in this ID. Learn more:
# planet.com/docs/reference/data-api/items-assets/#asset
# # planet.com/docs/reference/data-api/items-assets/#asset
# result = requests.get(id0_url, auth=HTTPBasicAuth(PLANET_API_KEY, ''))
# # List of asset types available for this particular satellite image
# keys = result.json().keys()
Expand Down
2 changes: 0 additions & 2 deletions eggshell/nc/nc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,8 +691,6 @@ def drs_filename(resource, skip_timestamp=False, skip_format=False,
:param rename_file: rename the file. (default: False)
:returns str: DRS filename
"""


try:
ds = Dataset(resource)
if variable is None:
Expand Down

0 comments on commit 24ce042

Please sign in to comment.