def METHOD_NAME(self, name, Z, Z0, data, attr=list()):
    """
    Adds a new IonState object to the list of ion charge states.
    """
    self.ionstates.append(IonState(name=name, Z=Z, Z0=Z0, data=data, grid=self.grid, output=self.output, attr=attr))