From 26f9875192eca0642e35de5b66210f37020c9b85 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 18 Oct 2024 07:51:28 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- dpdata/plugins/lammps.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/dpdata/plugins/lammps.py b/dpdata/plugins/lammps.py index b07dc69f..d265c53e 100644 --- a/dpdata/plugins/lammps.py +++ b/dpdata/plugins/lammps.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, List import numpy as np @@ -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 @@ -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. @@ -88,7 +87,7 @@ def from_system( Whether to unwrap the coordinates input_file : str, optional The input file name - + Returns ------- dict