def read(filename, fmt='votable'): formats = { 'votable': Votable, } if fmt not in formats: raise AttributeError( f"No such format: {fmt}. Available formats: {fmt.keys()}") return Reader(formats[fmt](filename))
def context_test5(make_data_path): return Reader(Votable(make_data_path("test5.vot.xml")))
def context_cube(make_data_path): return Reader(Votable(make_data_path("cube.vot.xml")))
def context_file1(make_data_path): return Reader(Votable(make_data_path("sample_file1.vot.xml")))