Skip to content

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

Merged
oesteban merged 1 commit into
masterfrom
fix/config-save
Apr 7, 2024
Merged

FIX: Avert costly BIDSLayout.__repr__ calls when saving config#1239
oesteban merged 1 commit into
masterfrom
fix/config-save

Conversation

@oesteban

@oesteban oesteban commented Apr 7, 2024

Copy link
Copy Markdown
Member

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
@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