fixing add_all_atom_densities
fixing ==None to is None
elastic network constraint