Skip to content

Overall straightening of the source code. - #117

Merged
sdc50 merged 23 commits into
erdc:masterfrom
AaronV77:Clean-Up
Nov 19, 2018
Merged

Overall straightening of the source code.#117
sdc50 merged 23 commits into
erdc:masterfrom
AaronV77:Clean-Up

Conversation

@AaronV77

@AaronV77 AaronV77 commented Oct 4, 2018

Copy link
Copy Markdown
Collaborator
  • - Get majority of the import statments to PEP 8 standard.
  • - Get the enums distributed throughout the source code.
  • - Update the README.md
  • - Get api_basics and search_features_example scripts into a notebook called Getting_Started
  • - Get the tests working.

Comment thread quest/plugins/user_provider.py Outdated
catalog_id, x1, y1, x2, y2 = line.split()
properties = {}
polys.append(Feature(geometry=util.bbox2poly(x1, y1, x2, y2, as_geojson=True), properties=properties, id=catalog_id))
polys.append(Feature(geometry=bbox2poly(x1, y1, x2, y2, as_geojson=True), properties=properties, id=catalog_id))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (140 > 120 characters)

Comment thread quest/plugins/user_provider.py Outdated
catalog_id = catalog_id.split('.')[0]
properties = {}
polys.append(Feature(geometry=util.bbox2poly(x1, y1, x2, y2, as_geojson=True), properties=properties, id=catalog_id))
polys.append(Feature(geometry=bbox2poly(x1, y1, x2, y2, as_geojson=True), properties=properties, id=catalog_id))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (140 > 120 characters)

Comment thread quest/plugins/base/service_base.py Outdated
zip_path = os.path.join(path, 'zip', filename)
ulmo.util.download_if_new(url, zip_path, check_modified=check_modified)
util.logger.info('... ... zipfile saved at %s' % zip_path)
logger.info('... ... zipfile saved at %s' % zip_path)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F821 undefined name 'logger'

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
stitched_image.paste(im=incoming_image, box=(x_pixel, y_pixel))
incoming_image.close()
counter += 1
print("Number of tiles printed: " + str(counter), end='\r')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E999 SyntaxError: invalid syntax

@AaronV77

Copy link
Copy Markdown
Collaborator Author

fixes #112
fixes #108
fixes #50

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread examples/notebooks/WMTS_Example.ipynb Outdated
"fill_dataset = quest.tools.wbt_fill_depressions(\n",
" dataset=elevation_raster,\n",
")['datasets'][0]\n",
"fill_dataset = quest.tools.wbt_fill_depressions(dataset=elevation_raster)['datasets'][0]\n",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this was more readable the other way.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This notebook at the time was failing for me and I was trying to get it to work on my system.

Comment thread quest/api/datasets.py Outdated
title = dataset

if 'timeseries' in file_format:
if static.DataType.TIMESERIES in file_format:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be DataType since datatype and file_format are distinct in the database. We may need to create a new static enum for file_format.

Comment thread quest/api/datasets.py Outdated
Comment thread quest/api/tools.py Outdated
Comment thread quest_tool_plugins/whitebox/whitebox_watershed.py Outdated
Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this test causing issues?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, at the time it was and I just never uncommented it.

Comment thread test/test_util_misc.py Outdated
Comment thread test/test_util_misc.py Outdated
Comment thread test/test_util_misc.py Outdated
sdc50 and others added 2 commits November 5, 2018 14:04
Co-Authored-By: AaronV77 <AaronV77@users.noreply.github.com>
Co-Authored-By: AaronV77 <AaronV77@users.noreply.github.com>
Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/test_util_misc.py Outdated

def test_get_cache_data_dir(reset_projects_dir):
assert quest.util.get_cache_dir() == os.path.join(reset_projects_dir['BASE_DIR'], os.path.join('.cache', 'test_cache'))
part_1 = quest.util.get_cache_dir()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'part_1' is assigned to but never used

Comment thread test/test_util_misc.py Outdated
def test_get_cache_data_dir(reset_projects_dir):
assert quest.util.get_cache_dir() == os.path.join(reset_projects_dir['BASE_DIR'], os.path.join('.cache', 'test_cache'))
part_1 = quest.util.get_cache_dir()
part_2 = os.path.join(reset_projects_dir['BASE_DIR'], os.path.join('.cache', 'test_cache'))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'part_2' is assigned to but never used

Comment thread test/test_util_misc.py
assert quest.util.get_cache_dir() == os.path.join(reset_projects_dir['BASE_DIR'], os.path.join('.cache', 'test_cache'))
part_1 = quest.util.get_cache_dir()
part_2 = os.path.join(reset_projects_dir['BASE_DIR'], os.path.join('.cache', 'test_cache'))
assert actual == expected

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F821 undefined name 'actual'
F821 undefined name 'expected'

sdc50 and others added 2 commits November 5, 2018 14:04
Co-Authored-By: AaronV77 <AaronV77@users.noreply.github.com>
Co-Authored-By: AaronV77 <AaronV77@users.noreply.github.com>
Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/test_util_misc.py Outdated

def test_get_cache_data_dir(reset_projects_dir):
assert quest.util.get_cache_dir() == os.path.join(reset_projects_dir['BASE_DIR'], os.path.join('.cache', 'test_cache'))
part_1 = quest.util.get_cache_dir()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'part_1' is assigned to but never used

Comment thread test/test_util_misc.py
assert quest.util.get_cache_dir() == os.path.join(reset_projects_dir['BASE_DIR'], os.path.join('.cache', 'test_cache'))
part_1 = quest.util.get_cache_dir()
expected = os.path.join(reset_projects_dir['BASE_DIR'], os.path.join('.cache', 'test_cache'))
assert actual == expected

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F821 undefined name 'actual'

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

sdc50 and others added 3 commits November 5, 2018 14:05
Co-Authored-By: AaronV77 <AaronV77@users.noreply.github.com>
Co-Authored-By: AaronV77 <AaronV77@users.noreply.github.com>
Co-Authored-By: AaronV77 <AaronV77@users.noreply.github.com>
Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Co-Authored-By: AaronV77 <AaronV77@users.noreply.github.com>
Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Comment thread quest/api/datasets.py Outdated
title = dataset

if 'timeseries' in file_format:
if static.DataType.TIMESERIES in file_format:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if static.DataType.TIMESERIES in file_format:
if 'timeseries' in file_format:

@coveralls

coveralls commented Nov 5, 2018

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 547

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-2.9%) to 68.816%

Totals Coverage Status
Change from base Build 505: -2.9%
Covered Lines: 4482
Relevant Lines: 6513

💛 - Coveralls

Comment thread test/data.py Outdated
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
# ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (122 > 120 characters)

Comment thread quest_provider_plugins/wmts_imagery.py Outdated
width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F841 local variable 'counter' is assigned to but never used

Comment thread quest_provider_plugins/usgs_nwis.py Outdated
Co-Authored-By: AaronV77 <AaronV77@users.noreply.github.com>
Comment thread quest/api/tools.py
from .metadata import get_metadata
from .tasks import add_async
from ..util import to_geojson
from ..static import UriType, PluginType

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F401 '..static.UriType' imported but unused

Comment thread quest/api/workflows.py
from ..database import get_db, db_session
from ..static import DatasetStatus
from ..util import logger as log
from ..static import DatasetStatus, UriType

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F401 '..static.UriType' imported but unused


from ...static import DatasetStatus, DatasetSource
from ...util import listify, format_json_options, uuid
from ...static import DatasetStatus, DatasetSource, UriType

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F401 '...static.UriType' imported but unused

from io import StringIO
from geojson import Feature, FeatureCollection

from ..static import UriType

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F401 '..static.UriType' imported but unused

import numpy as np

from quest.plugins import IoBase
from quest.static import DataType

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F401 'quest.static.DataType' imported but unused


from quest import util
from quest.plugins import ToolBase
from quest.static import DataType, UriType

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F401 'quest.static.UriType' imported but unused

import param
from quest import util
from quest.plugins import ToolBase
from quest.static import DataType, UriType

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F401 'quest.static.UriType' imported but unused

from quest.api import get_metadata
from quest import util
from quest.plugins import load_plugins
from quest.static import UriType, DataType

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F401 'quest.static.UriType' imported but unused

from quest.api import get_metadata
from quest import util
from quest.util import setattr_on_dataframe
from quest.static import DataType, UriType

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F401 'quest.static.UriType' imported but unused

from quest.plugins import ToolBase
from quest import util
from quest.plugins import ToolBase
from quest.static import DataType, UriType, GeomType

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F401 'quest.static.UriType' imported but unused

@sdc50
sdc50 merged commit e92e4f4 into erdc:master Nov 19, 2018
douggallup pushed a commit to Aquaveo/quest that referenced this pull request Dec 3, 2018
* Added use of enums where relevant

* Re-ordered import statements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants