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

Add support for IBMA estimators with t-statistic images in Reports #896

Merged
merged 4 commits into from
Aug 15, 2024
Merged
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
15 changes: 6 additions & 9 deletions nimare/reports/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,15 +484,12 @@ def __init__(
)
elif meta_type == "IBMA":
# Use "z_maps", for Fishers, and Stouffers; otherwise use "beta_maps".
if "z_maps" in self.results.estimator.inputs_:
key_maps = "z_maps"
x_label = "Z"
elif "t_maps" in self.results.estimator.inputs_:
key_maps = "t_maps"
x_label = "T"
else:
key_maps = "beta_maps"
x_label = "Beta"
INPUT_TYPE_LABELS = {'z_maps': 'Z', 't_maps': 'T', 'beta_maps': 'Beta'}
for key_maps, x_label in INPUT_TYPE_LABELS.items():
if key_maps in self.results.estimator.inputs_:
break
else:
key_maps, x_label = 'beta_maps', 'Beta'
jdkent marked this conversation as resolved.
Show resolved Hide resolved

maps_arr = self.results.estimator.inputs_[key_maps]
ids_ = self.results.estimator.inputs_["id"]
Expand Down
Loading