def test_iterative_avg(): """Test iterative avg of maps.""" avg, _ = maps.iterative_smooth_avg_var(compute_var=False, sigma=sigma, bias=False) return plotting.plot_activity_map(avg.to_img())
def test_iterative_avg_var_1(): """Test iterative avg of maps.""" return plotting.plot_activity_map(avg.to_img())
def test_avg(): """Test avg of maps.""" avg = maps.avg() return plotting.plot_activity_map(avg.to_img())
def test_var(): """Test var of maps.""" var = maps.var() return plotting.plot_activity_map(var.to_img())
def test_iterative_avg_var_thresholded_1_dense(): """Test iterative avg of dense maps thresholded.""" return plotting.plot_activity_map(avg_dense.to_img(), threshold=0.0007)
def test_iterative_avg_var_thresholded_1_biased(): """Test iterative biased avg of maps thresholded.""" return plotting.plot_activity_map(avg_biased.to_img(), threshold=0.0007)
def test_atlas_iterative_avg_var_thresholded_1(): """Test iterative avg of maps on atlas.""" return plotting.plot_activity_map(avg_atlas.to_img_atlas(ignore_bg=True), threshold=0.0007)
def test_iterative_avg_var_thresholded_2(): """Test iterative var thresholded of maps.""" return plotting.plot_activity_map(var.to_img(), threshold=0.00002)
def test_atlas_var(): """Test var of maps on atlas.""" var = maps_atlas.var() return plotting.plot_activity_map(var.to_img_atlas(ignore_bg=True))
def test_atlas_iterative_avg(): """Test iterative avg of maps on atlas.""" avg, _ = maps_atlas.iterative_smooth_avg_var(compute_var=False, sigma=sigma, bias=False) return plotting.plot_activity_map(avg.to_img_atlas(ignore_bg=True))
def test_atlas_avg(): """Test avg of maps on atlas.""" avg = maps_atlas.avg() return plotting.plot_activity_map(avg.to_img_atlas(ignore_bg=True))
def test_atlas_sum(): """Test sum of maps on atlas.""" sum = maps_atlas.summed_map() return plotting.plot_activity_map(sum.to_img_atlas(ignore_bg=True))
def test_iterative_avg_var_1_dense_biased(): """Test iterative biased avg of dense maps.""" return plotting.plot_activity_map(avg_dense_biased.to_img())
def test_iterative_avg_var_2(): """Test iterative var of maps.""" return plotting.plot_activity_map(var.to_img())
def test_atlas_iterative_avg_var_2_biased(): """Test iterative biased var of maps on atlas.""" return plotting.plot_activity_map(var_atlas_biased.to_img_atlas(ignore_bg=True))
def test_iterative_avg_var_thresholded_1(): """Test iterative avg thresholded of maps.""" return plotting.plot_activity_map(avg.to_img(), threshold=0.0007)
def test_atlas_iterative_avg_var_thresholded_2_biased(): """Test thresholded iterative var of maps on atlas.""" return plotting.plot_activity_map(var_atlas_biased.to_img_atlas(ignore_bg=True), threshold=0.00002)
def test_iterative_avg_var_2_dense(): """Test iterative var of dense maps.""" return plotting.plot_activity_map(var_dense.to_img())
def test_sum(): """Test sum of maps.""" sum = maps.summed_map() return plotting.plot_activity_map(sum.to_img())
def test_iterative_avg_var_thresholded_2_dense(): """Test iterative var of maps thresholded.""" return plotting.plot_activity_map(var_dense.to_img(), threshold=0.00002)
def test_iterative_avg_var_2_biased(): """Test iterative biased var of maps.""" return plotting.plot_activity_map(var_biased.to_img())