From 054acff3c142c147e3b5801a13347f04c56f0eb5 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Sat, 3 Nov 2018 02:49:44 -0400 Subject: missing script --- training/txt2hdf5.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 training/txt2hdf5.py (limited to 'training') diff --git a/training/txt2hdf5.py b/training/txt2hdf5.py new file mode 100755 index 00000000..9c602877 --- /dev/null +++ b/training/txt2hdf5.py @@ -0,0 +1,12 @@ +#!/usr/bin/python + +from __future__ import print_function + +import numpy as np +import h5py +import sys + +data = np.loadtxt(sys.argv[1], dtype='float32') +h5f = h5py.File(sys.argv[2], 'w'); +h5f.create_dataset('data', data=data) +h5f.close() -- cgit v1.2.3