-
Notifications
You must be signed in to change notification settings - Fork 16
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
Make improvements to parallel tile fetching #108
base: master
Are you sure you want to change the base?
Conversation
@cdeil I have successfully used |
@adl1995 - OK to merge? Or did you already continue doing edits in this branch? |
@cdeil No, I haven't made any further edits. But, tile fetching only works correctly with Should I just manually sort the list of tiles in case of |
7f06939
to
03556ed
Compare
Signed-off-by: Adeel Ahmad <[email protected]>
03556ed
to
030aa50
Compare
@cdeil - Sorry for the late response. I have added a some error handling for missing and timed out tiles. For the moment, if a tile is missing, we simply raise a I think one option is to introduce an attribute (boolean?) in the |
I think it's very common that some times don't arrive. There's of course the case of network issues, but also there are HiPS that aren't all-sky, so some tiles just aren't present on the server. We should be able to draw those, yes. This is also the case for all HiPS we have as example datasets in the I don't remember what we have. But basically I think we need to return a result object, working just with a stream of tiles can't work? |
I don't believe we currently handle the case of missing tiles. The tests seems to pass even if I raise the I'm starting to add this functionality in (0a17fe1). Currently, I have introduced a variable |
0a17fe1
to
6ad2f48
Compare
We now have the functionality to create an all sky image when one (or more) tiles are missing. An example plot for @cdeil - Can you please give this a review? We still need to add a few test cases for this. I'm not sure how to construct the test case, but we can probably pass a bogus URL and try to plot the result at the end. |
Signed-off-by: Adeel Ahmad <[email protected]>
6ad2f48
to
3d7f49e
Compare
@cdeil - As discussed, I have now removed the The test case is failing because of an issue with Astropy:
|
@adl1995 - Looks like I dropped the ball here and didn't respond or merge this in, sorry! I've now made you admin for hipspy, so you can also go ahead and merge if no-one responds from now on. Note that in this case it would be best to first fix the CI test fails in GH master, possibly via #143, and to only then continue with functional changes and PRs like this one, always only merging in ones that have all test passing. How would you feel about getting rid of both our homegrown multi-threading and aiohttp code, and to use parfive instead? |
This is a follow-up for issue #107. I have restructured the
fetch_tiles
function for now, but error handling if yet to be done.fetch_tiles