Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize GCLDAModel with numba and Parallel #744

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
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
tsalo marked this conversation as resolved.
Show resolved Hide resolved

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