Skip to content

Conversation

@evertrol
Copy link
Contributor

This fixes #593

It tentatively fixes the (remote) unit test accordingly, to actually download the image and catch this bug.
There is no change for the local unit test.

Adjust the unit test accordingly, to actually download the image and
catch this bug.
@evertrol
Copy link
Contributor Author

Side note: I have changed the '2MASS-K' survey to '2MASS-J', because the former gives me a 404 http error code. Since I didn't see this yesterday, this may be temporary hiccup on the Skyview server. The '2MASS-J' survey works without a problem.

Copy link
Contributor

Choose a reason for hiding this comment

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

How big are the files? If they're more than a few MB, could you add a second decorator here, @pytest.mark.bigdata?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The file is relatively small, about 360 KB, since the images get (down)sampled to 300 by 300 pixels by default (and could be reduced further server-side if wanted).

keflavich added a commit that referenced this pull request Oct 21, 2015
Fix SkyView encoding bug for downloading images
@keflavich keflavich merged commit 0f55d01 into astropy:master Oct 21, 2015
@keflavich
Copy link
Contributor

Excellent, in that case, thanks! Great work!

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.

SkyView.get_images fails with Python 3

2 participants