adding Table.psave method#372
Conversation
|
Maybe this could be done by registering a new |
|
@taldcroft - so are you saying you'd rather not have a distinct |
|
Yes, I'd say the separate |
|
I agree that having |
|
Alright, in that case I'll close this PR. I'll look forward to you putting in this functionality at the sprint, then :) |
Fix compatibility with the latest versions of setuptools
Another typo fix
Note that this is not ready for merging immediately - it needs tests/docs/polish before merging/
The main thing this does is add a
psavemethod toastropy.table.Table. This just generates text as thepformatandpprintfunctions do, and saves it to a file instead of the terminal.The main question is whether or not this method should exist at all - @taldcroft and @astrofrog, in particular, may have some thoughts on this. This seems reasonable to me because it's simple enough to implement that I've already found myself doing it by hand semi-regularly, so a convinience method might make sense here. On the other hand, in principal that's what
Table.writeand the I/O framework fortableis for, so this sort of duplicates some efforts.Should I go ahead and flesh this out more, or do we not want such a thing in
astropy.tableright now?