Skip to content

Commit

Permalink
v.report: Updated instance checks (#4618)
Browse files Browse the repository at this point in the history
  • Loading branch information
arohanajit authored Oct 31, 2024
1 parent 528763f commit 00f51c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ per-file-ignores =
scripts/r.in.wms/wms_drv.py: E402, E722
scripts/r.in.wms/srs.py: E722
scripts/r.semantic.label/r.semantic.label.py: E501
scripts/v.report/v.report.py: E721
scripts/db.out.ogr/db.out.ogr.py: F841
scripts/g.extension/g.extension.py: E501
scripts/v.unpack/v.unpack.py: E501
Expand Down
2 changes: 1 addition & 1 deletion scripts/v.report/v.report.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def main():

# calculate percentages
records4 = [float(r[-1]) * 100 / total for r in records3]
if type(records1[0]) == int:
if isinstance(records1[0], int):
records3 = [[r1] + [r4] for r1, r4 in zip(records1, records4)]
else:
records3 = [r1 + [r4] for r1, r4 in zip(records1, records4)]
Expand Down

0 comments on commit 00f51c9

Please sign in to comment.