Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkent committed Sep 11, 2024
1 parent 9909104 commit 046d36c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pymare/tests/test_combination_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def test_stouffer_adjusted():
groups_l1 = np.tile(np.array([0, 0, 0, 0, 0]), (data_l1.shape[1], 1)).T

results_l1 = StoufferCombinationTest("directed").fit(z=data_l1, g=groups_l1).params_
# z_l1 = ss.norm.isf(results_l1["p"])

sigma_l1 = n_maps_l1 * (n_maps_l1 - 1) # Expected inflation term
z_expected_l1 = n_maps_l1 * common_sample / np.sqrt(n_maps_l1 + sigma_l1)
Expand All @@ -82,7 +81,6 @@ def test_stouffer_adjusted():
results_corr = (
StoufferCombinationTest("directed").fit(z=data, w=weights, g=groups, corr=corr).params_
)
# z_corr = ss.norm.isf(results_corr["p"])

z_corr_expected = np.array([5.00088912, 3.70356943, 4.05465924, 5.4633001, 5.18927878])
assert np.allclose(results_corr["z"], z_corr_expected, atol=1e-5)
Expand All @@ -97,6 +95,5 @@ def test_stouffer_adjusted():

# Test with correlation matrix and no groups.
results1 = StoufferCombinationTest("directed").fit(z=_z1, corr=corr).params_
# z1 = ss.norm.isf(results1["p"])

assert np.allclose(results1["z"], [4.69574], atol=1e-5)

0 comments on commit 046d36c

Please sign in to comment.