Skip to content

Commit 403be24

Browse files
committed
use str for zone id in _synthesize_grid()
- to be consistent with commit cce76e6.
1 parent d071cf8 commit 403be24

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

path4gmns/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from .zonesyn import *
77

88

9-
__version__ = '0.9.6'
9+
__version__ = '0.9.7'
1010

1111

1212
# print out the current version

path4gmns/classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class Zone:
291291

292292
def __init__(self, zone_id, bin_index=0):
293293
self.no = -1
294-
self.id = zone_id
294+
self.id = str(zone_id)
295295
self.bin_id = bin_index
296296
self.production = 0
297297
self.centroid = None

path4gmns/zonesyn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _synthesize_grid(ui, grid_dim, max_bin):
139139

140140
(i, j) = _get_grid_id(x, y, res)
141141
if (i, j) not in grids.keys():
142-
grids[(i, j)] = k
142+
grids[(i, j)] = str(k)
143143
z = Zone(k)
144144
# boundaries (roughly)
145145
L_ = i * res
@@ -150,7 +150,7 @@ def _synthesize_grid(ui, grid_dim, max_bin):
150150
cx = (2 * x + L_ + R_) / 4
151151
cy = (2 * y + U_ + D_) / 4
152152
z.setup_geo(U_, D_, L_, R_, cx, cy)
153-
zones[k] = z
153+
zones[str(k)] = z
154154
k += 1
155155

156156
zones[grids[(i, j)]].add_activity_node(node.get_node_id())

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="path4gmns",
8-
version="0.9.6",
8+
version="0.9.7",
99
author="Dr. Xuesong Zhou, Dr. Peiheng Li",
1010
author_email="xzhou74@asu.edu, jdlph@hotmail.com",
1111
description="An open-source, cross-platform, lightweight, and fast Python\

0 commit comments

Comments
 (0)