Skip to content

Commit

Permalink
bugfix: updated one-way group parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
vijay-jaisankar committed Apr 24, 2022
1 parent a3d9017 commit 351f262
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

## Installation
- `python -m pip install --upgrade pip`
- `pip install trafficinterventions xml`
Binary file added dist/trafficinterventions-0.0.2-py3-none-any.whl
Binary file not shown.
Binary file added dist/trafficinterventions-0.0.2.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = trafficinterventions
version = 0.0.1
version = 0.0.2
author = WSL, IIITB
author_email = vijay.jaisankar@iiitb.ac.in
description = Python Package to perform simple Traffic Interventions.
Expand Down
3 changes: 2 additions & 1 deletion src/trafficinterventions.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: trafficinterventions
Version: 0.0.1
Version: 0.0.2
Summary: Python Package to perform simple Traffic Interventions.
Home-page: https://github.com/WSL-IIITB/Traffic-Interventions
Author: WSL, IIITB
Expand All @@ -19,5 +19,6 @@ License-File: LICENSE

## Installation
- `python -m pip install --upgrade pip`
- `pip install trafficinterventions xml`


4 changes: 2 additions & 2 deletions src/trafficinterventions/ChangeLanes.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def toggleOneWay(self, laneTypeList, newFileName = None):
if child.tag == "type":
attributesDict = child.attrib
if attributesDict["id"] in laneTypeList:
if str(attributesDict["oneway"]) == 0:
if str(attributesDict["oneway"]) == "0":
child.set("oneway", "1")
else:
elif str(attributesDict["oneway"]) == "1":
child.set("oneway", "0")
if newFileName is None:
self._tree.write(self._fileName)
Expand Down

0 comments on commit 351f262

Please sign in to comment.