Implementation of astropy.vo.samp from SAMPy#1907
Conversation
|
@cdeil - when I try and start the Did you ever see this too? EDIT: I managed to reproduce this with a simple example and have posted it to stackoverflow: http://stackoverflow.com/questions/20593882/host-returned-by-socket-getfqdn-cant-be-used-to-set-up-an-xmlrpc-server |
|
@cdeil - what was the decision regarding method names? (currently not PEP8-compliant) |
|
@cdeil - FYI I added in the TOPCAT table examples. I tried to simplify them as possible but let me know if they can be made even simpler. |
|
@embray @mdboom @cdeil - there are quite a few places in the code, like this: https://github.com/astropy/astropy/pull/1907/files#diff-0a3ce8542e196863f25de8c49d57831cR1443 where wrapper methods are defined. What is the most elegant way to avoid this repetitive code? Is this a good place where meta-classes to be used? Another way is to mess with One option is for the What do you think? |
|
@cdeil - what do you think about splitting up the files further? For example |
|
@astrofrog - re: the GUI stuff: I agree with your suggestion of dropping the Tk dialog and replacing it with terminal interactions. Or if it's possible/worthwhile to make some sort of optional "hook", then user codes could connect other GUIs as desired (and then the Tk part could serve as an example or test or something). But if that's a lot of work I'd say don't bother right now. |
|
@eteq - sounds good, I've removed the Tk-specific code (it was just a pop-up dialog) and kept the terminal-based workaround that was implemented. We can always add the Tk code back in future if we feel it's needed and we agree on a GUI toolkit. |
I think merging this in astropy master very soon would be good so that it gets some real-world testing before the 0.4 release. It's OK if there are a few known things that should still be improved, e.g. "Make it fully compatible with the protocol v.1.3" as well as more tests and examples can be added incrementally over the next few months. |
|
@cdeil - thanks for your answers! Regarding the sub-classing, I've already done this in astrofrog#41. I'd like to aim to merge this before the end of January, and I agree not all the to-dos need to be implemented before then. |
There was a problem hiding this comment.
@cdeil - does this really need to be a remote test? I.e. SAMP can be used completely locally without any external network connection.
There was a problem hiding this comment.
I remember that some tests were failing on travis-ci and I didn't understand why, so that might have been the reason I put this as a remote test. But I agree this should work locally, so maybe you can just try removing it and see what travis-ci says?
|
I will work tomorrow (while traveling) on PEP8-fying all the method names if there are no objections. |
|
Note to self, the method names still need to be fixed in the docs. |
|
@cdeil - for info, I've worked some more on this and amongst other things have been trying to improve the test coverage significantly. At the moment the coverage is still not great in some files but that is due to some parts of the code running in children threads and pytest-cov doesn't seem to take that into account. |
|
This is going to require quite a bit more work, but I'm hoping that we can have something ready for initial review soon. |
|
@cdeil - I won't have time to work on this much for the next week or so, so if there are any improvements you would like to make, feel free to do so! |
|
One small issue - even though the internet is not needed, there are occasional timeout errors which cause some tests to fail. Shall I just mark them as @remote_data even though they aren't really so? I could restrict this to tests that do occasionally fail? |
There was a problem hiding this comment.
optional? Defaulting to ...?
|
I've added a few notes but nothing critical that should hold up the PR; it's obviously complex enough that it would take more time than I have to take a more detailed look. Thanks for the fixes to the tests. On my Windows 7 laptop it now takes ~45 seconds for them to run which is quite acceptable. |
|
@embray - thanks for the comments! I will implement what I can over the weekend, and will open issues for things that require longer-term refactoring. |
…t manager, fix _xmlrpcEnpoints to be PEP8-compliant, removed unnecessary code, and fixed typo (changes suggested by @embray)
|
@embray - ok, I think I've addressed all of the important issues you raised or moved them to separate issues. Once Travis passes, can I merge? :) |
|
The tests are still passing (the failures a few commits ago were sphinx warnings) so I will merge this later today. |
Implementation of astropy.vo.samp from SAMPy
Since @lpaioro no longer has time to port SAMPy to
astropy.vo.samp, I have rebased his branch (which also includes many contributions from @cdeil) and re-opened a pull request. This is still work in progress. Here is the to-do list copied from #972 which is now superceded:cc @lpaioro @cdeil @mdboom @pllim @eteq
The latest docs can be viewed here: http://astrofrog-debug.readthedocs.org/en/latest/vo/samp/index.html
Getting this completely ready to go will be a big task, so we may not manage before 0.4 - though we should try! Contributions welcome :)
Issues that I have run into (don't need to all be addressed before this is merged):