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 Apr 3, 2024
1 parent 1a34fc9 commit e56d0b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dpdata/pymatgen/structure.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np

try:
from pymatgen.core import Structure # noqa: F401
from pymatgen.core import Structure # noqa: F401
except ImportError:
pass

Check warning on line 6 in dpdata/pymatgen/structure.py

View check run for this annotation

Codecov / codecov/patch

dpdata/pymatgen/structure.py#L5-L6

Added lines #L5 - L6 were not covered by tests

Expand All @@ -19,6 +19,6 @@ def from_system_data(structure) -> dict:
"atom_numbs": atom_numbs,
"atom_types": atom_types,
"coords": np.array([coords]),
"cells": np.array([cells])
"cells": np.array([cells]),
}
return info_dict
2 changes: 1 addition & 1 deletion tests/test_from_pymatgen.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import unittest

from comp_sys import CompSys, IsPBC
from comp_sys import CompSys
from context import dpdata

try:
Expand Down

0 comments on commit e56d0b3

Please sign in to comment.