Skip to content

Commit

Permalink
Disable soap calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ladinesa committed Jan 21, 2024
1 parent c3ae72c commit ac52155
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions soapnormalizer/normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ def normalize_system(self, system, is_representative):
soap.r_cut = np.float64(params["soap cutoff"])
soap.atom_sigma = np.float64(params["atom_sigma"])

# regular soap
quippy_str = params_to_quippy_str(params)
desc = descriptors.Descriptor(quippy_str)
output = desc.calc(atoms)
ps_array_list = [flat_to_array(p, N, L, S) for p in output["data"]]
soap.soap = np.array(
[np.reshape(d, (S, S, -1)) for d in ps_array_list]
)
# # regular soap
# quippy_str = params_to_quippy_str(params)
# desc = descriptors.Descriptor(quippy_str)
# output = desc.calc(atoms)
# ps_array_list = [flat_to_array(p, N, L, S) for p in output["data"]]
# soap.soap = np.array(
# [np.reshape(d, (S, S, -1)) for d in ps_array_list]
# )

# TODO causes memory overflow
# # global soap
Expand Down

0 comments on commit ac52155

Please sign in to comment.