Skip to content

Replacing null with no_tap in utils_contrasts #89

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

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

ferponcem
Copy link
Contributor

To solve #88.

@ferponcem ferponcem requested a review from bthirion April 23, 2025 15:36
Copy link
Member

@bthirion bthirion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a revision but LGTM otherwise.

if design_matrix_columns is None:
return dict([(name, []) for name in contrast_names])
con = _elementary_contrasts(design_matrix_columns)
contrasts = {
'specified': con['specified'],
'chosen': con['chosen'],
'null': con['null'],
'no_tap': con['no_tap'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid that this is not going to work, since con has the strings in design_matrix_columns as keys.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I addressed this here by renaming the entries of the event files as no_tap.

If I understood correctly, make_paradigm in utils_paradigms takes this file and gets the event info, and so far there are no adjustments needed in the post_process function for this task.

Is this what you meant ?

@bthirion bthirion merged commit 6130396 into master Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants