Skip to content

Commit

Permalink
Update point calculation so it works for timeseries (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Apr 30, 2024
1 parent 3b08c28 commit 1df707a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holonote/annotate/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ def _filter_stream_values(self, bounds, x, y, geometry):
if not self._editable_enabled:
return (None, None, None, None)
if self.region_format == "point" and bounds:
x = (bounds[0] + bounds[2]) / 2
# x is calculated this way to handle datetime
x = bounds[0] + (bounds[2] - bounds[0]) / 2
y = None
bounds = (x, 0, x, 0)
elif "range" not in self.region_format:
Expand Down

0 comments on commit 1df707a

Please sign in to comment.