Skip to content

Commit dc22e44

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 876a866 commit dc22e44

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

dpdata/lmdb/format.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class LMDBFormat(Format):
5757
>>> import dpdata
5858
>>> loaded_multi_systems = dpdata.MultiSystems.from_file("my_multi_system_db.lmdb", fmt="lmdb")
5959
"""
60+
6061
def __init__(self, *args, **kwargs) -> None:
6162
import msgpack_numpy as m
6263

@@ -108,6 +109,7 @@ def to_multi_systems(
108109

109110
def _dump_to_txn(self, data, txn, formula, dtypes):
110111
import msgpack
112+
111113
from dpdata.data_type import Axis
112114

113115
nframes = data["coords"].shape[0]
@@ -212,8 +214,9 @@ def from_multi_systems(self, file_name, map_size=1000000000, **kwargs):
212214
dict
213215
data dictionary for each system
214216
"""
215-
import msgpack
216217
import lmdb
218+
import msgpack
219+
217220
from dpdata.data_type import Axis, DataType
218221
from dpdata.system import LabeledSystem, System
219222

0 commit comments

Comments
 (0)