Skip to content

Commit

Permalink
PEP8: fix E126 continuation line over-indented for hanging indent
Browse files Browse the repository at this point in the history
  • Loading branch information
neteler committed Sep 23, 2020
1 parent 14cf2a8 commit 5b38f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v.divide.training_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def cleanup():
columns_existing = grass.vector_columns(options['input']).keys()
if newcol in columns_existing:
grass.run_command(
'v.db.dropcolumn', map=options['input'], columns=newcol)
'v.db.dropcolumn', map=options['input'], columns=newcol)


def extract_data(input, output, cats, value):
Expand All @@ -73,7 +73,7 @@ def extract_data(input, output, cats, value):
for i in range(0, len(cats), n):
cats_list = cats[i:i+n]
grass.run_command(
'v.db.update',
'v.db.update',
where='cat IN (%s)' % (','.join(cats_list)),
map=input, column=newcol, value=value, quiet=True)
grass.percent(i+n, len(cats), 1)
Expand Down

0 comments on commit 5b38f31

Please # to comment.