-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests(disordered_tracing): Bulks out missing unittests #978
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,8 @@ | |
|
||
LOGGER = logging.getLogger(LOGGER_NAME) | ||
|
||
# pylint: disable=too-many-positional-arguments | ||
# too-many-positional-arguments | ||
# pylint: disable=R0917 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah nice! I've been looking for a way to suppress this warning as the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Its quite annoying as its a valid name but doesn't seem to be recognised. I should raise an issue but still have to report to the Topoloy developers the issues with Python version releases and other problems uncovered the other day and don't have time for everything. |
||
|
||
|
||
class disorderedTrace: # pylint: disable=too-many-instance-attributes | ||
|
@@ -526,7 +527,7 @@ def prep_arrays( | |
Returns | ||
------- | ||
Tuple | ||
Returns a tuple of two dictionaries, each consisting of cropped arrays. | ||
Returns a tuple of three dictionaries, the cropped images, cropped masks and bounding boxes. | ||
""" | ||
# Get bounding boxes for each grain | ||
region_properties = skimage_measure.regionprops(labelled_grains_mask) | ||
|
@@ -729,7 +730,7 @@ def pad_bounding_box(array_shape: tuple, bounding_box: list, pad_width: int) -> | |
Parameters | ||
---------- | ||
array_shape : tuple | ||
Shape of original image. | ||
Shape of original image (row, columns). | ||
bounding_box : list | ||
List of coordinates 'min_row', 'min_col', 'max_row', 'max_col'. | ||
pad_width : int | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is

grain_anchor
used anywhere? I pulled the branch and can't find any references to where it's usedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, I recall I introduced it because we needed a way of putting tracing, done on cropped grains, back into the original image and the solution I came up with was to have an anchor point so we could put it back in the right location.
If its been removed in the refactor in favour of an alternative method of putting everything back that is perfectly fine but there was too much in the code/pull request for me to spot that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it's tested and imo potentially useful so let's keep it. Was just wondering 😄