Skip to content

Add options for COM binning & centering to density, fix pbc treatment.

Philip Loche requested to merge density_improvements into develop

I added options to compute the density with the bining relative to the center of a given group and added an option to center the output around zero.

I also fixed some broken treatment of the density in bin zero.

What I don't get is that apparently the initialization is not carried out in __init?

        if self.comgroup is not None: self.center = True

is not correctly initialized in density.py. All variables in this method are set to their default values but then in the other methods they are all set according to the parser options. @ploche can you please explain me this class inheritance magic and help such that the initialization works as expected?

Merge request reports