Code from the write_votable method was moved into the to_table method. The write_votable method now calls to_table, and only writes the result to file.
After discussion, we decided to merge the core of this PR and move the squeeze()ing to a new PR which will make sure the different dimensions are handled correctly under different cases. Thanks @sundarjhu !
Code from the write_votable method was moved into the to_table method. The write_votable method now calls to_table, and only writes the result to file.