Commit d8e2b58f authored by André Anjos's avatar André Anjos 💬

Merge branch 'hdf5-h5' into 'master'

Makes sure we can load/save files with arbitrary extensions

See merge request !8
parents 8cbe67e3 e3b77675
Pipeline #18311 passed with stages
in 59 minutes and 32 seconds
......@@ -101,10 +101,10 @@ def test_can_save():
os.unlink(tmp)
def test_can_save_hdf5():
def run_for_extension(ext):
machine = Machine(HEART_MACHINE)
tmp = tempname('.hdf5')
tmp = tempname(ext)
machine.save(bob.io.base.HDF5File(tmp, 'w'))
del machine
......@@ -123,6 +123,15 @@ def test_can_save_hdf5():
os.unlink(tmp)
def test_can_save_arbitrary():
run_for_extension('.arbitrary')
def test_can_save_h5():
run_for_extension('.h5')
def test_can_save_hdf5():
run_for_extension('.hdf5')
def test_data_loading():
#tests if I can load data in libsvm format using SVMFile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment