-
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.
fix: max instead of mean structure size for line kernels
- Loading branch information
Showing
4 changed files
with
20 additions
and
19 deletions.
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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import numpy as np | ||
from decimer_segmentation.decimer_segmentation import * | ||
|
||
def test_determine_average_depiction_size(): | ||
def test_determine_depiction_size_with_buffer(): | ||
# 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) | ||
expected_result = (12, 12) | ||
actual_result = determine_depiction_size_with_buffer(bboxes) | ||
assert expected_result == actual_result |
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