njzjz/deepmd-kit

comput the input for vaccum when setting remove_vaccum_contribution

Closed this issue · 0 comments

Idealy, the input for vaccum should be computed;
we consider it as always zero for convenience.
Needs a compute_input_stats for vaccum passed from the
descriptor.

Line: 316

)
xx = descriptor
if self.remove_vaccum_contribution is not None:
# TODO: comput the input for vaccum when setting remove_vaccum_contribution
# Idealy, the input for vaccum should be computed;
# we consider it as always zero for convenience.
# Needs a compute_input_stats for vaccum passed from the
# descriptor.
xx_zeros = np.zeros_like(xx)
else:
xx_zeros = None