Memory usage of ForceConstantCalculator
Description
Memory usage seem to blow up when constructing a ForceConstantCalculator
Problem seem to be that the numpy array references are lost when casting the list of fc to numpy array, i.e. in here.
for d in [self.clusters,
self.force_constants,
self.atom_indices,
self.atom_positions,
self.atom_counts,
self.prefactors,
]:
for k, v in d.items():
d[k] = np.array(v)
cc @freeriks