Skip to content

Commit dd4e51a

Browse files
committed
ENH: Add remaining model reprs while here
1 parent 732f98c commit dd4e51a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bids/layout/models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ def _sanitize_init_args(self, kwargs):
7171

7272
return kwargs
7373

74+
def __repr__(self):
75+
return f"<LayoutInfo {self.root}>"
76+
7477

7578
class Config(Base):
7679
"""Container for BIDS configuration information.
@@ -162,6 +165,9 @@ def load(self, config, session=None):
162165

163166
return Config(session=session, **config)
164167

168+
def __repr__(self):
169+
return f"<Config {self.name}>"
170+
165171

166172
class BIDSFile(Base):
167173
"""Represents a single file or directory in a BIDS dataset.

0 commit comments

Comments
 (0)