-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add pytests for featurize_directory and featurize_files #191
Conversation
JesseMckinzie
commented
Jan 5, 2024
- Add pytests for featurize_directory and featurize_files
- Add tissuenet data for tests
Apply Sweep Rules to your PR?
|
tests/python/test_tissuenet_data.py
Outdated
|
||
tissuenet_int = np.array([int_p0_y1_r1_c0, int_p0_y1_r1_c1]) | ||
tissuenet_seg = np.array([seg_p0_y1_r1_c0, seg_p0_y1_r1_c1]) | ||
print(tissuenet_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.
remove the print
please.
tests/python/test_nyxus.py
Outdated
files_not_equal.append(col) | ||
break | ||
|
||
print(files_not_equal) |
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.
I think we can remove print
. If necessary, we can modify the assert
to print a custom message when it fails, something like this:
assert len(files_not_equal) == 0, f"Files that are not equal:\n {files_not_equal}"