Open cdeil opened 5 years ago
After #137 now the travis-ci build is green, and the only warning remaining is this one from MPL. So @adl1995 - Please take care of this issue first.
I also see that the Windows CI build is hanging in the test that does the plotting: https://ci.appveyor.com/project/cdeil/hips-19275o3fsp6drby/builds/21010220#L399
@bsipocz or @astrofrog - Probably that's because a GUI windows is popping up? What needs to be changed to avoid this on Appveyor? I don't see any settings / commands to choose a non-interactive MPL GUI backend e.g. in https://github.com/astropy/photutils/blob/master/appveyor.yml .
For linux we have already set the backend in ci-helpers to be non interactive (there it's called MPLBACKEND
, maybe the same issue surfaced up here, too). I don't know the windows equivalent though. But if it's fixes it, I suppose we should add the fix to ci-helpers as well.
The latest photutils appveyor build was using mpl 3.0.1, so the issue may be present there, too.
I noticed an issue with https://github.com/hipspy/hips/blob/master/hips/draw/tests/test_paint.py
There's an error when just running
test_draw_hips_tile_grid
because only intest_run
theself.painter.run()
is executed. Test functions should never depend on each other, all setup code should be in setup or fixture code. Not sure what the proper solution here is, either move theself.painter.run()
to setup, or re-consider the setup / tests in this file and try to organise them in a better way.Also, there is this MPL warning. I didn't track that down yet, maybe it's from here? https://github.com/hipspy/hips/blob/e870e5c97a136810e857c676a65e6beb2bf1804f/hips/draw/paint.py#L218 Why do we call
subplot
for each tile? That's probably not a good idea, no?@adl1995 - I think you wrote this code? Could you maybe have a look?