Skip to content

Commit 0a62a95

Browse files
committed
reformat using black
1 parent 5870948 commit 0a62a95

File tree

1 file changed

+7
-2
lines changed
  • chebai/preprocessing/datasets

1 file changed

+7
-2
lines changed

chebai/preprocessing/datasets/base.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,13 @@ def _load_data_from_file(self, path: str) -> List[Dict[str, Any]]:
314314
if d["features"] is not None
315315
]
316316
# filter for missing features in resulting data, keep features length below token limit
317-
data = [val for val in data if val["features"] is not None
318-
and self.n_token_limit is None or len(val["features"]) <= self.n_token_limit]
317+
data = [
318+
val
319+
for val in data
320+
if val["features"] is not None
321+
and self.n_token_limit is None
322+
or len(val["features"]) <= self.n_token_limit
323+
]
319324

320325
return data
321326

0 commit comments

Comments
 (0)