Skip to content

Overall straightening of the source code.#117

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

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

Conversation

@AaronV77
Copy link
Collaborator

@AaronV77 AaronV77 commented Oct 4, 2018

  • - 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.

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))

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)

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))

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)

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)

Choose a reason for hiding this comment

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

F821 undefined name 'logger'

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')

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
Collaborator Author

fixes #112
fixes #108
fixes #50

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

"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
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
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.

title = dataset

if 'timeseries' in file_format:
if static.DataType.TIMESERIES in file_format:
Copy link
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.

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
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
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.

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>
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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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


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()

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

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'))

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

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

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>
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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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


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()

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

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

Choose a reason for hiding this comment

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

F821 undefined name 'actual'

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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>
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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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>
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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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

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
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'}),

title = dataset

if 'timeseries' in file_format:
if static.DataType.TIMESERIES in file_format:
Copy link
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
Copy link

coveralls commented Nov 5, 2018

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

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'}),

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)

width = number_of_x_tiles * TILE_SIZE
full_image = None

counter = 0

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>
from .metadata import get_metadata
from .tasks import add_async
from ..util import to_geojson
from ..static import UriType, PluginType

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 ..database import get_db, db_session
from ..static import DatasetStatus
from ..util import logger as log
from ..static import DatasetStatus, UriType

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

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

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

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

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

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

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

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

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