Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions nimare/tests/test_annotate_gclda.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

from nimare import annotate, decode

# Disable numba execution to allow pytest-cov to detect coverage in functions with @jit
config.DISABLE_JIT = True


def test_gclda_symmetric(testdata_laird):
"""A smoke test for GCLDA with symmetric regions."""
# Disable numba execution to allow pytest-cov to detect coverage in functions with @jit
config.DISABLE_JIT = True

counts_df = annotate.text.generate_counts(
testdata_laird.texts,
text_column="abstract",
Expand Down Expand Up @@ -87,3 +87,7 @@ def test_gclda_asymmetric(testdata_laird):
# Encode text
encoded_img, _ = decode.encode.gclda_encode(model, "fmri activation")
assert isinstance(encoded_img, nib.Nifti1Image)


# Disable numba execution to allow pytest-cov to detect coverage in functions with @jit
config.DISABLE_JIT = False