Skip to content

Commit 8b8d74d

Browse files
committed
Box default attributes
1 parent a9998d6 commit 8b8d74d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

forte/data/ontology/top.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1096,8 +1096,8 @@ class Box(Region):
10961096
def __init__(
10971097
self,
10981098
pack: PackType,
1099-
cy: int,
1100-
cx: int,
1099+
cy: int = 0,
1100+
cx: int = 0,
11011101
height: int = 1,
11021102
width: int = 1,
11031103
image_payload_idx: int = 0,

tests/forte/data/data_store_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ def test_get(self):
11011101
"forte.data.ontology.top.Annotation", range_annotation=(1, 20)
11021102
)
11031103
)
1104-
self.assertEqual(len(instances), 4)
1104+
self.assertEqual(len(instances), 2)
11051105

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

0 commit comments

Comments
 (0)