Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 18, 2024
1 parent ee6f274 commit 26f9875
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions dpdata/plugins/lammps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, List

import numpy as np

Expand All @@ -9,7 +9,6 @@
from dpdata.data_type import Axis, DataType
from dpdata.format import Format
from dpdata.utils import open_file
from typing import List, Dict

if TYPE_CHECKING:
from dpdata.utils import FileType
Expand Down Expand Up @@ -64,12 +63,12 @@ class LAMMPSDumpFormat(Format):
@Format.post("shift_orig_zero")
def from_system(
self,
file_name : str,
type_map: List[str] =None,
begin: int =0,
step: int =1,
unwrap: bool =False,
input_file: str =None,
file_name: str,
type_map: List[str] = None,
begin: int = 0,
step: int = 1,
unwrap: bool = False,
input_file: str = None,
**kwargs,
):
"""Read the data from a lammps dump file.
Expand All @@ -88,7 +87,7 @@ def from_system(
Whether to unwrap the coordinates
input_file : str, optional
The input file name
Returns
-------
dict
Expand Down

0 comments on commit 26f9875

Please sign in to comment.