You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dptb/data/dataset/lmdb_dataset.py
+15-11Lines changed: 15 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ class LMDBDataset(AtomicDataset):
25
25
def__init__(
26
26
self,
27
27
root: str,
28
-
info: dict,
28
+
info_files: dict,
29
29
url: Optional[str] =None,
30
30
include_frames: Optional[List[int]] =None,
31
31
type_mapper: TypeMapper=None,
@@ -39,9 +39,7 @@ def __init__(
39
39
# See if a subclass defines some inputs
40
40
self.url=getattr(type(self), "URL", url)
41
41
self.include_frames=include_frames
42
-
self.info=info# there should be one info file for one LMDB Dataset
43
-
44
-
assert"r_max"ininfo
42
+
self.info_files=info_files# there should be one info file for one LMDB Dataset
45
43
46
44
47
45
self.data=None
@@ -66,10 +64,16 @@ def __init__(
66
64
assertnotget_Hamiltonian*get_DM, "Hamiltonian and Density Matrix can only loaded one at a time, for which will occupy the same attribute in the AtomicData."
0 commit comments