-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from UBC-MDS/proofread
Proofread
- Loading branch information
Showing
4 changed files
with
53 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This function is created solely for the purpose of unit testing. | ||
# It is not intended to be part of the actual software package. | ||
# Please refrain from using this function in production or in any user-facing features. | ||
# | ||
# It is placed in the tests folder to separate from core software functionality. | ||
# It is included to help validate specific components of the code during testing. | ||
# This function may be removed or modified as needed for the testing process. | ||
|
||
def display_image(img): | ||
""" | ||
Display the numpy array as an image. | ||
Parameters | ||
---------- | ||
img : numpy.ndarray | ||
The image data as a numpy array | ||
with shape (height, width, channels). | ||
Raises | ||
------ | ||
ValueError | ||
If the file is not a valid numpy array. | ||
Examples | ||
-------- | ||
>>> img = load_image('image.jpg') | ||
>>> display_image(img) | ||
""" | ||
pass |
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 was deleted.
Oops, something went wrong.