Skip to content

Commit b93be0f

Browse files
committed
Remove Suffix.T1W filter
This is causing the non T1w suffix rows to be filtered out, which is needed downstream.
1 parent 2eac273 commit b93be0f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/rbc/bids/session.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import polars as pl
1212

13-
from rbc.bids import Datatype, Suffix, extract_entities
13+
from rbc.bids import Datatype, extract_entities
1414

1515
if TYPE_CHECKING:
1616
from collections.abc import Iterator, Sequence
@@ -50,11 +50,7 @@ def load_session(df: pl.DataFrame, subject: str, session: str | None) -> Session
5050
base: list[pl.Expr] = [pl.col("sub") == subject]
5151
if session is not None:
5252
base.append(pl.col("ses") == session)
53-
anat_df = df.filter(
54-
pl.all_horizontal(
55-
[*base, pl.col("datatype") == Datatype.ANAT, pl.col("suffix") == Suffix.T1W]
56-
)
57-
)
53+
anat_df = df.filter(pl.all_horizontal([*base, pl.col("datatype") == Datatype.ANAT]))
5854
func_df = df.filter(pl.all_horizontal([*base, pl.col("datatype") == Datatype.FUNC]))
5955

6056
return SessionTables(anat=anat_df, func=func_df if not func_df.is_empty() else None)

0 commit comments

Comments
 (0)