wavelet command: allow other dimensions
@@ -60,11 +60,10 @@ int main_wavelet(int argc, char* argv[])
complex float* idata = load_cfl(argv[n + 2], N, idims);
long dims[N];
+ md_copy_dims(N, dims, idims);
if (adj) {
- md_singleton_dims(N, dims);
-
unsigned int j = 0;
for (unsigned int i = 0; i < N; i++)
@@ -72,10 +71,6 @@ int main_wavelet(int argc, char* argv[])
dims[i] = atoi(argv[j++ + 2]);
assert(j == n);
-
- } else {
-
- md_copy_dims(N, dims, idims);
}
long minsize[N];
