Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tillwenke committed Jan 12, 2025
1 parent bac7651 commit 41a5c66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions heatchmap/gpmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,16 @@ def recalc_map(self):
if len(to_predict) == self.batch_size:
waiting_times, uncertainties = self.gpr.predict(np.array(to_predict), return_std=True)
for i, (y, x) in enumerate(pixels_to_predict):
self.raw_raster[y][x] = waiting_time[i]
self.raw_raster[y][x] = waiting_times[i]
self.uncertainties[y][x] = uncertainties[i]

to_predict = []
pixels_to_predict = []

if len(to_predict) > 0:
waiting_time, uncertainties = self.gpr.predict(np.array(to_predict), return_std=True)
waiting_times, uncertainties = self.gpr.predict(np.array(to_predict), return_std=True)
for i, (y, x) in enumerate(pixels_to_predict):
self.raw_raster[y][x] = waiting_time[i]
self.raw_raster[y][x] = waiting_times[i]
self.uncertainties[y][x] = uncertainties[i]


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import setuptools

VERSION = "0.1.26"
VERSION = "0.1.27"

NAME = "heatchmap"

Expand Down

0 comments on commit 41a5c66

Please sign in to comment.