Skip to content

Commit

Permalink
Fix roads layer dim naming
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaksei135 committed Mar 15, 2021
1 parent e98a99f commit 06dc8dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SEEDPOD Ground Risk.spec
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ a = Analysis(['seedpod_ground_risk/main.py'],
("README.md", '.'),
(os.path.join(pyviz_comms.comm_path, "notebook.js"), "pyviz_comms"),
(panel.__path__[0], "panel"),
(sklearn.utils.__path__[0], "sklearn/utils"),
(sklearn.__path__[0], "sklearn"),
(datashader.__path__[0], "datashader"),
(distributed.__path__[0], "distributed"),
(os.path.join(fiona.__path__[0], "*.pyd"), "fiona"), # Geospatial primitives
Expand Down
4 changes: 2 additions & 2 deletions seedpod_ground_risk/layers/roads_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def generate(self, bounds_polygon: sg.Polygon, raster_shape: Tuple[int, int], fr
kdims=['Longitude', 'Latitude'], vdims=['population_per_hour', 'density']).opts(
colorbar=True,
cmap=colorcet.CET_L18,
color='population',
line_color='population')
color='population_per_hour',
line_color='population_per_hour')
bounds = bounds_polygon.bounds
raster = rasterize(points, aggregator=ds.mean('density'), width=raster_shape[0], height=raster_shape[1],
x_range=(bounds[1], bounds[3]), y_range=(bounds[0], bounds[2]), dynamic=False)
Expand Down
Empty file.

0 comments on commit 06dc8dc

Please sign in to comment.