diff --git a/cortex/database.py b/cortex/database.py index 1c638c73..3979da13 100644 --- a/cortex/database.py +++ b/cortex/database.py @@ -105,7 +105,8 @@ def __getitem__(self, name): raise AttributeError def __repr__(self): - return "Transforms: [{xfms}]".format(xfms=",".join(self.xfms)) + xfms = "\n".join(sorted(self.xfms)) + return f"Available transforms for {self.subject}:\n{xfms}" class XfmSet(object): def __init__(self, subj, name, filestore=default_filestore): @@ -178,6 +179,7 @@ def subjects(self): return self._subjects subjs = os.listdir(os.path.join(self.filestore)) subjs = [s for s in subjs if os.path.isdir(os.path.join(self.filestore, s))] + subjs = sorted(subjs) self._subjects = dict([(sname, SubjectDB(sname, filestore=self.filestore)) for sname in subjs]) return self._subjects