Skip to content

Commit

Permalink
mypy on test file
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsleh committed Dec 13, 2023
1 parent 44146eb commit 4b3f46d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/datamodules/test_digital_typhoon.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def test_split_dataset(self, split_by: str) -> None:
if split_by == "time":

def find_max_time_per_id(
split_sequences: list[dict[str, Union[int, list[int]]]]
) -> dict[int, int]:
split_sequences: list[dict[str, Union[str, list[int]]]]
) -> dict[str, int]:
# Find the maximum value of each id in train_sequences
max_values = {}
max_values: dict[str, int] = {}
for seq in split_sequences:
id: int = seq["id"]
id: str = str(seq["id"])
value: int = max(seq["seq_id"])
if id not in max_values or value > max_values[id]:
max_values[id] = value
Expand Down

0 comments on commit 4b3f46d

Please sign in to comment.