<commit_before>
$(TESTS_OUT)/shepplogan.ra: phantom
	$(TOOLDIR)/phantom $@

$(TESTS_OUT)/shepplogan_ksp.ra: phantom
	$(TOOLDIR)/phantom -k $@

$(TESTS_OUT)/shepplogan_coil.ra: phantom
	$(TOOLDIR)/phantom -s8 -k $@


tests/test-phantom-ksp: fft nrmse $(TESTS_OUT)/shepplogan.ra $(TESTS_OUT)/shepplogan_ksp.ra
	$(TOOLDIR)/fft -i 7 $(TESTS_OUT)/shepplogan_ksp.ra $(TESTS_TMP)/shepplogan_img.ra
	$(TOOLDIR)/nrmse -t 0.22 $(TESTS_OUT)/shepplogan.ra $(TESTS_TMP)/shepplogan_img.ra
	rm $(TESTS_TMP)/*.ra
	touch $@


tests/test-phantom-noncart: traj phantom reshape nrmse $(TESTS_OUT)/shepplogan_ksp.ra
	$(TOOLDIR)/traj $(TESTS_TMP)/traj
	$(TOOLDIR)/phantom -k -t $(TESTS_TMP)/traj $(TESTS_TMP)/shepplogan_ksp2.ra
	$(TOOLDIR)/reshape 7 128 128 1 $(TESTS_TMP)/shepplogan_ksp2.ra $(TESTS_TMP)/shepplogan_ksp3.ra
	$(TOOLDIR)/nrmse -t 0.00001 $(TESTS_OUT)/shepplogan_ksp.ra $(TESTS_TMP)/shepplogan_ksp3.ra
	rm $(TESTS_TMP)/*.ra
	touch $@


tests/test-phantom-coil: phantom fmac nrmse $(TESTS_OUT)/shepplogan.ra
	$(TOOLDIR)/phantom -s8 $(TESTS_TMP)/shepplogan_coil.ra
	$(TOOLDIR)/phantom -S8 $(TESTS_TMP)/coil.ra
	$(TOOLDIR)/fmac $(TESTS_OUT)/shepplogan.ra $(TESTS_TMP)/coil.ra $(TESTS_TMP)/sl_coil2.ra
	$(TOOLDIR)/nrmse -t 0. $(TESTS_TMP)/shepplogan_coil.ra $(TESTS_TMP)/sl_coil2.ra
	rm $(TESTS_TMP)/*.ra
	touch $@


tests/test-phantom-ksp-coil: phantom fmac fft nrmse $(TESTS_OUT)/shepplogan_coil.ra $(TESTS_OUT)/shepplogan.ra
	$(TOOLDIR)/phantom -S8 $(TESTS_TMP)/coil.ra
	$(TOOLDIR)/fmac $(TESTS_OUT)/shepplogan.ra $(TESTS_TMP)/coil.ra $(TESTS_TMP)/sl_coil2.ra
	$(TOOLDIR)/fft -i 7 $(TESTS_OUT)/shepplogan_coil.ra $(TESTS_TMP)/shepplogan_cimg.ra
	$(TOOLDIR)/nrmse -t 0.22 $(TESTS_TMP)/sl_coil2.ra $(TESTS_TMP)/shepplogan_cimg.ra
	rm $(TESTS_TMP)/*.ra
	touch $@



TESTS += tests/test-phantom-ksp tests/test-phantom-noncart tests/test-phantom-coil tests/test-phantom-ksp-coil

<commit_msg>minor<commit_after>
$(TESTS_OUT)/shepplogan.ra: phantom
	$(TOOLDIR)/phantom $@

$(TESTS_OUT)/shepplogan_ksp.ra: phantom
	$(TOOLDIR)/phantom -k $@

$(TESTS_OUT)/shepplogan_coil.ra: phantom
	$(TOOLDIR)/phantom -s8 -k $@


tests/test-phantom-ksp: fft nrmse $(TESTS_OUT)/shepplogan.ra $(TESTS_OUT)/shepplogan_ksp.ra
	$(TOOLDIR)/fft -i 7 $(TESTS_OUT)/shepplogan_ksp.ra $(TESTS_TMP)/shepplogan_img.ra
	$(TOOLDIR)/nrmse -t 0.22 $(TESTS_OUT)/shepplogan.ra $(TESTS_TMP)/shepplogan_img.ra
	rm $(TESTS_TMP)/*.ra
	touch $@


tests/test-phantom-noncart: traj phantom reshape nrmse $(TESTS_OUT)/shepplogan_ksp.ra
	$(TOOLDIR)/traj $(TESTS_TMP)/traj
	$(TOOLDIR)/phantom -k -t $(TESTS_TMP)/traj $(TESTS_TMP)/shepplogan_ksp2.ra
	$(TOOLDIR)/reshape 7 128 128 1 $(TESTS_TMP)/shepplogan_ksp2.ra $(TESTS_TMP)/shepplogan_ksp3.ra
	$(TOOLDIR)/nrmse -t 0.00001 $(TESTS_OUT)/shepplogan_ksp.ra $(TESTS_TMP)/shepplogan_ksp3.ra
	rm $(TESTS_TMP)/*.ra
	touch $@


tests/test-phantom-coil: phantom fmac nrmse $(TESTS_OUT)/shepplogan.ra
	$(TOOLDIR)/phantom -s8 $(TESTS_TMP)/shepplogan_coil.ra
	$(TOOLDIR)/phantom -S8 $(TESTS_TMP)/coil.ra
	$(TOOLDIR)/fmac $(TESTS_OUT)/shepplogan.ra $(TESTS_TMP)/coil.ra $(TESTS_TMP)/sl_coil2.ra
	$(TOOLDIR)/nrmse -t 0. $(TESTS_TMP)/shepplogan_coil.ra $(TESTS_TMP)/sl_coil2.ra
	rm $(TESTS_TMP)/*.ra
	touch $@


tests/test-phantom-ksp-coil: phantom fft nrmse $(TESTS_OUT)/shepplogan_coil.ra $(TESTS_OUT)/shepplogan.ra
	$(TOOLDIR)/phantom -s8 $(TESTS_TMP)/sl_coil2.ra
	$(TOOLDIR)/fft -i 7 $(TESTS_OUT)/shepplogan_coil.ra $(TESTS_TMP)/shepplogan_cimg.ra
	$(TOOLDIR)/nrmse -t 0.22 $(TESTS_TMP)/sl_coil2.ra $(TESTS_TMP)/shepplogan_cimg.ra
	rm $(TESTS_TMP)/*.ra
	touch $@



TESTS += tests/test-phantom-ksp tests/test-phantom-noncart tests/test-phantom-coil tests/test-phantom-ksp-coil


{'fraction_non_alphanumeric': 0.17801476620180476, 'fraction_numerical': 0.019141372709871478, 'mean_word_length': 5.263698630136986, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7011037', 'n_tokens_mistral': 1811, 'n_tokens_neox': 1691, 'n_words': 223}