Commit 2fb50c8a authored by Unknown's avatar Unknown
Browse files

Removed chunk of commented out code

parent aaff26b7
......@@ -89,23 +89,6 @@ def doSVD(h5_main, num_comps=None):
ds_U = MicroDataset('U', data=np.float32(U), chunking=u_chunks)
del U
# if is_complex:
# # Put the real and imaginary sections together to make complex V
# V = V[:, :int(0.5 * V.shape[1])] + 1j * V[:, int(0.5 * V.shape[1]):]
# v_chunks = calc_chunks(V.shape, h5_main.dtype.itemsize)
# ds_V = MicroDataset('V', data=np.complex64(V), chunking=v_chunks)
# elif is_compound:
# V2 = np.empty([V.shape[0], h5_main.shape[1]], dtype=h5_main.dtype)
# for iname, name in enumerate(h5_main.dtype.names):
# istart = iname * V2.shape[1]
# iend = (iname + 1) * V2.shape[1]
# V2[name] = V[:, istart:iend]
# v_chunks = calc_chunks(V2.shape, h5_main.dtype.itemsize)
# ds_V = MicroDataset('V', data=V2, chunking=v_chunks)
# del V2
# else:
# v_chunks = calc_chunks(V.shape, h5_main.dtype.itemsize)
# ds_V = MicroDataset('V', data=np.float32(V), chunking=v_chunks)
V = transformToTargetType(V, h5_main.dtype)
v_chunks = calc_chunks(V.shape, h5_main.dtype.itemsize)
ds_V = MicroDataset('V', data=V, chunking=v_chunks)
......
Supports Markdown
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