-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: function to get mean size from bboxes
- Loading branch information
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import numpy as np | ||
from decimer_segmentation.decimer_segmentation import * | ||
|
||
def test_determine_average_depiction_size(): | ||
# Determine the average depiction size of the structures in a given list of structures | ||
bboxes = [ | ||
[0, 0, 6, 6], | ||
[0, 0, 8, 8], | ||
[0, 0, 10, 10], | ||
] | ||
expected_result = (8, 8) | ||
actual_result = determine_average_depiction_size(bboxes) | ||
assert expected_result == actual_result |