Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
uecker committed Dec 3, 2024
1 parent cb044d7 commit 116c32e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
3 changes: 1 addition & 2 deletions src/fft.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ int main_fft(int argc, char* argv[argc])
complex float* idata = load_cfl(in_file, DIMS, dims);
complex float* data = create_cfl(out_file, DIMS, dims);


md_copy(DIMS, dims, data, idata, sizeof(complex float));

unmap_cfl(DIMS, dims, idata);

if (unitary)
Expand All @@ -75,4 +75,3 @@ int main_fft(int argc, char* argv[argc])
return 0;
}


29 changes: 15 additions & 14 deletions tests/signal.mk
Original file line number Diff line number Diff line change
Expand Up @@ -68,39 +68,39 @@ tests/test-signal-fse: signal nrmse
touch $@

tests/test-signal-fse-epg: signal epg extract nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/signal -T -n 8 -e 0.01 -r 12 -f 120 -1 1:1:1 -2 0.1:0.1:1 sig.ra ;\
$(TOOLDIR)/epg -C -n 7 -e 0.01 -r 12 -f 120 -1 1 -2 0.1 sig2.ra ;\
$(TOOLDIR)/extract 5 1 8 sig.ra sig3.ra ;\
$(TOOLDIR)/nrmse -t 0.00001 sig2.ra sig3.ra ;\
$(TOOLDIR)/epg -C -n 7 -e 0.01 -r 12 -f 120 -1 1 -2 0.1 sig2.ra ;\
$(TOOLDIR)/extract 5 1 8 sig.ra sig3.ra ;\
$(TOOLDIR)/nrmse -t 0.00001 sig2.ra sig3.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@

tests/test-signal-ir-se: signal ones scale slice nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/signal -S -I -i 0.5 -n 3 -e 0.0001 -r 100 -1 3:3:1 -2 1000:1000:1 sig.ra ;\
$(TOOLDIR)/ones 1 1 one.ra ;\
$(TOOLDIR)/scale -- -1 one.ra ref0.ra ;\
$(TOOLDIR)/slice 5 0 sig.ra t0.ra ;\
$(TOOLDIR)/ones 1 1 one.ra ;\
$(TOOLDIR)/scale -- -1 one.ra ref0.ra ;\
$(TOOLDIR)/slice 5 0 sig.ra t0.ra ;\
$(TOOLDIR)/nrmse -t 0.00001 t0.ra ref0.ra ;\
$(TOOLDIR)/scale -- -0.692963 one.ra ref1.ra ;\
$(TOOLDIR)/slice 5 1 sig.ra t1.ra ;\
$(TOOLDIR)/slice 5 1 sig.ra t1.ra ;\
$(TOOLDIR)/nrmse -t 0.00001 t1.ra ref1.ra ;\
$(TOOLDIR)/scale -- -0.4330626 one.ra ref2.ra ;\
$(TOOLDIR)/slice 5 2 sig.ra t2.ra ;\
$(TOOLDIR)/slice 5 2 sig.ra t2.ra ;\
$(TOOLDIR)/nrmse -t 0.00001 t2.ra ref2.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@

tests/test-signal-se-single: signal slice nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
$(TOOLDIR)/signal -S -i 0.5 -n 3 -e 0.01 -r 100 -1 3:3:1 -2 0.01:0.01:1 sig.ra ;\
$(TOOLDIR)/signal -S -i 0.5 -n 1 -e 0.01 -r 100 -1 3:3:1 -2 0.01:0.01:1 sig2.ra ;\
$(TOOLDIR)/signal -S -i 0.5 -n 1 -e 0.02 -r 100 -1 3:3:1 -2 0.01:0.01:1 sig3.ra ;\
$(TOOLDIR)/slice 5 1 sig.ra t1.ra ;\
$(TOOLDIR)/nrmse -t 0.00001 t1.ra sig2.ra ;\
$(TOOLDIR)/slice 5 2 sig.ra t2.ra ;\
$(TOOLDIR)/nrmse -t 0.00001 t2.ra sig3.ra ;\
$(TOOLDIR)/slice 5 1 sig.ra t1.ra ;\
$(TOOLDIR)/nrmse -t 0.00001 t1.ra sig2.ra ;\
$(TOOLDIR)/slice 5 2 sig.ra t2.ra ;\
$(TOOLDIR)/nrmse -t 0.00001 t2.ra sig3.ra ;\
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@

Expand Down Expand Up @@ -130,3 +130,4 @@ TESTS += tests/test-signal-se tests/test-signal-ir-se
TESTS += tests/test-signal-fse tests/test-signal-fse-epg
TESTS += tests/test-signal-se-single tests/test-signal-ir-se-single
TESTS += tests/test-signal-LL-short-TR-approx

3 changes: 3 additions & 0 deletions utests/test_epg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#include <complex.h>
#include <math.h>
#include <assert.h>

#include "misc/mri.h"

#include "num/flpmath.h"

#include "simu/epg.h"
Expand Down Expand Up @@ -88,3 +90,4 @@ static bool test_hyperecho_epg(void)
}

UT_REGISTER_TEST(test_hyperecho_epg);

0 comments on commit 116c32e

Please sign in to comment.