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

FIX: Avert costly BIDSLayout.__repr__ calls when saving config #1239

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

oesteban
Copy link
Member

@oesteban oesteban commented Apr 7, 2024

The layout is printed out as a string when writing the config file. The object's __repr__ shows a summary of subjects and tasks, etc., which for large datasets can be very costly.

Rewriting the layout's __repr__ effectively reduces runtime.

Resolves: #1236.

cc/ @effigies

When writing out the config file, the layout is printed out as a string.
The object's ``__repr__`` shows a summary of subjects and tasks, etc.
that for large datasets can be very costly.

Rewriting the ``__repr__`` of the layout effectively removes runtime.
@oesteban oesteban merged commit 5af71a0 into master Apr 7, 2024
15 checks passed
@oesteban oesteban deleted the fix/config-save branch April 7, 2024 21:54
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.

Inefficient BIDS Layout initialization
1 participant