Skip to content

Commit 59e6231

Browse files
committed
fixing mypy error
1 parent 6a37cb8 commit 59e6231

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fl4health/datasets/rxrx1/preprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import argparse
22
import os
33
import pickle
4+
from collections.abc import Hashable
45
from pathlib import Path
56
from typing import Any
67

@@ -24,7 +25,7 @@ def filter_and_save_data(metadata: pd.DataFrame, top_sirna_ids: list[int], cell_
2425
filtered_metadata.to_csv(output_path, index=False)
2526

2627

27-
def load_image(row: dict[str, Any], root: Path) -> torch.Tensor:
28+
def load_image(row: dict[Hashable, Any], root: Path) -> torch.Tensor:
2829
"""
2930
Load an image tensor for a given row of metadata.
3031

0 commit comments

Comments
 (0)