Skip to content

Commit

Permalink
fix type of typemap
Browse files Browse the repository at this point in the history
  • Loading branch information
CaRoLZhangxy committed Mar 8, 2024
1 parent 8ae44f5 commit 277f538
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepmd/pt/utils/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from typing import (
List,
Optional,
)

from torch.utils.data import (
Expand All @@ -16,7 +17,7 @@


class DeepmdDataSetForLoader(Dataset):
def __init__(self, system: str, type_map: str):
def __init__(self, system: str, type_map: Optional[List[str]] = None):

Check warning on line 20 in deepmd/pt/utils/dataset.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/utils/dataset.py#L20

Added line #L20 was not covered by tests
"""Construct DeePMD-style dataset containing frames cross different systems.
Args:
Expand Down

0 comments on commit 277f538

Please sign in to comment.