Skip to content

Commit

Permalink
lint: fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
gantian127 committed Feb 28, 2020
1 parent 78f0056 commit 16be32e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion nwm/bmi.py
Expand Up @@ -634,4 +634,4 @@ def update_until(self, time: float) -> None:
time : float
A model time later than the current model time.
"""
raise NotImplementedError("update_until")
raise NotImplementedError("update_until")
8 changes: 4 additions & 4 deletions nwm/cli.py
Expand Up @@ -31,7 +31,7 @@
help="Variable type for data download, such as streamflow and velocity.",
show_default="streamflow"
)
@click.option( # TODO fix int input issue
@click.option( # TODO fix int input issue
"--comid",
default='5781915',
help="COMID for a river reach (e.g. 5781915) or a grid (e.g. 1635, 2030)",
Expand Down Expand Up @@ -72,8 +72,8 @@
)
def main(archive, config, geom, variable, init_time, time_lag, comid, start_date, end_date, output):
comid_list = list(map(int, comid.split(',')))
dataset = NwmHs().get_data(archive=archive, config=config, geom=geom,variable=variable,
comid=comid_list, init_time=init_time, time_lag=time_lag,
start_date=start_date, end_date=end_date, output=output)
NwmHs().get_data(archive=archive, config=config, geom=geom, variable=variable,
comid=comid_list, init_time=init_time, time_lag=time_lag,
start_date=start_date, end_date=end_date, output=output)
if os.path.isfile(output):
print('Done')
1 change: 0 additions & 1 deletion nwm/nwm.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
import os
import xarray as xr
import requests
from datetime import datetime, timedelta
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -7,7 +7,7 @@ tag_prefix =
parentdir_prefix = nwm-

[flake8]
exclude = docs
exclude = docs,versioneer.py
ignore =
E203
E501
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -23,4 +23,4 @@
],

entry_points={"console_scripts": ["nwm=nwm.cli:main"]},
)
)
2 changes: 0 additions & 2 deletions tests/test_cli.py
Expand Up @@ -124,5 +124,3 @@ def test_end_date_option(tmpdir):
result = runner.invoke(main, ["--config=analysis_assim", "--start_date=2017-09-05",
"--end_date=2017-09-06", "test.xml"])
assert result.exit_code == 0


0 comments on commit 16be32e

Please sign in to comment.