Skip to content

Commit

Permalink
Typo fix (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleined authored Jan 5, 2023
1 parent 6174fdb commit 1244b6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/neuroglancer/write_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def add_line(self, point_a: Sequence[int], point_b: Sequence[int], id: Optional[
)
self._add_two_point_obj(point_a, point_b, id, kwargs)

def _add_two_point_obj(self, point_a: Sequence[int], point_b: Sequence[int], id: Optional[int] = None, kwargs):
def _add_two_point_obj(self, point_a: Sequence[int], point_b: Sequence[int], id: Optional[int] = None, **kwargs):
if len(point_a) != self.coordinate_space.rank:
raise ValueError(
f'Expected coordinates to have length {self.coordinate_space.rank}, but received: {len(point_a)}'
Expand All @@ -139,7 +139,7 @@ def _add_two_point_obj(self, point_a: Sequence[int], point_b: Sequence[int], id:
coords = np.concatenate((point_a, point_b))
self._add_obj(coords, id, kwargs)

def _add_obj(self, coords: Sequence[int], id: Optional[int], kwargs):
def _add_obj(self, coords: Sequence[int], id: Optional[int], **kwargs):
encoded = np.zeros(shape=(), dtype=self.dtype)
encoded[()]['geometry'] = point

Expand Down

0 comments on commit 1244b6e

Please sign in to comment.