Skip to content

Commit

Permalink
Box default attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pushkar-Bhuse committed Jun 30, 2022
1 parent a9998d6 commit 8b8d74d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions forte/data/ontology/top.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,8 +1096,8 @@ class Box(Region):
def __init__(
self,
pack: PackType,
cy: int,
cx: int,
cy: int = 0,
cx: int = 0,
height: int = 1,
width: int = 1,
image_payload_idx: int = 0,
Expand Down
2 changes: 1 addition & 1 deletion tests/forte/data/data_store_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ def test_get(self):
"forte.data.ontology.top.Annotation", range_annotation=(1, 20)
)
)
self.assertEqual(len(instances), 4)
self.assertEqual(len(instances), 2)

# get groups with subclasses
instances = list(self.data_store.get("forte.data.ontology.top.Group"))
Expand Down

0 comments on commit 8b8d74d

Please sign in to comment.