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
@warn"The attribute 'column_major' is missing for the data 'positions'. Proceed assuming array was stored in column-major format. If you are saving your array from Python, make sure to set the column_major attribute to 0 (False)."
@warn"The attribute 'column_major' is missing for the data 'cell'. Proceed assuming array was stored in column-major format. If you are saving your array from Python, make sure to set the column_major attribute to 0 (False)."
107
+
cell =read(ag["cell"])
108
+
end
109
+
return JuLIP.Atoms(;
110
+
X=[SVector{3}(d) for d ineachslice(positions; dims=1)],
88
111
Z=read(ag["atypes"]),
89
-
cell=read(ag["cell"]),
90
-
pbc=read(ag["pbc"])
112
+
cell= cell,
113
+
pbc=Bool.(read(ag["pbc"]))
91
114
)
92
-
115
+
end
93
116
94
117
function_hdf52ft( ftg::HDF5.Group )
95
-
spft =sparse( read(ftg["ft_I"]),read(ftg["ft_J"]), [SMatrix{3,3}(d) for d ineachslice(read(ftg["ft_val"]); dims=1)] )
@warn"The attribute 'column_major' is missing for the data 'ft_val'. Proceed assuming array was stored in column-major format. If you are saving your array from Python, make sure to set the column_major attribute to 0 (False)."
127
+
ft_val =read(ftg["ft_val"])
128
+
end
129
+
spft =sparse( read(ftg["ft_I"]),read(ftg["ft_J"]), [SMatrix{3,3}(d) for d ineachslice(ft_val; dims=1)] )
0 commit comments