Skip to content
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

Include tests for image_type #93

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

JohnnyTeutonic
Copy link
Contributor

Put in a test for the function 'viz.show_multiple_images' to ensure that the 'image_type' parameter has sane output

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 50.195% when pulling aabfd53 on JohnnyTeutonic:imshow into 7c80b30 on janelia-flyem:master.

@jni
Copy link
Collaborator

jni commented Feb 12, 2018

@JohnnyTeutonic now you should add a test case that raises this error. =)

@JohnnyTeutonic
Copy link
Contributor Author

weird build fail?
Owing to:
install_requires=INST_DEPENDENCIES,
scripts=["bin/gala-segment", "bin/gala-segmentation-stitch",
"bin/gala-segmentation-pipeline",
"bin/gala-train", "bin/gala-test-package",
"bin/gala-pixel", "bin/comparestacks",
"bin/gala-valprob", "bin/gala-auto", "bin/gala-serve"],

in 'setup.py'.

very confused, as that environment variable is present in all your setup.py scripts

def test_multiple_images():
TEST_IM_1 = np.random.randn(30, 30)
TEST_IM_2 = np.random.randn(30, 30)
show_multiple_images(TEST_IM_1, TEST_IM_2, image_type='colour')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to add a test that raises the LookupError. And actually I've never heard of such an error, I suggest ValueError instead!

@jni
Copy link
Collaborator

jni commented Feb 12, 2018

Yes I've actually spent all of today fixing this in various packages, that's why I was even looking at the gala repo. =) setuptools v38 introduced a breaking change that install requirements could only be ordered containers (lists, tuples) and not unordered ones (sets) so that the order of package installation would be fixed. If you rebase on master you should see the error disappear.

@JohnnyTeutonic
Copy link
Contributor Author

JohnnyTeutonic commented Feb 12, 2018 via email

@JohnnyTeutonic
Copy link
Contributor Author

JohnnyTeutonic commented Feb 12, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants