if np.any(self.occupancy < 0):
            warnings.warn(
                "One or more occupancies in your PROCAR file are negative. All negative occupancies will be set to zero."
            )
            self.occupancy[self.occupancy < 0] = 0.0