@staticmethod
def get_number_of_atoms(filename='OUTCAR', lines=None):
    '\n        Returns the number of ions in the simulation\n\n        Args:\n            filename (str): OUTCAR filename\n            lines (list/None): lines read from the file\n\n        Returns:\n            int: The number of ions in the simulation\n\n        '
    ions_trigger = 'NIONS ='
    (trigger_indices, lines) = _get_trigger(lines=lines, filename=filename, trigger=ions_trigger)
    if (len(trigger_indices) != 0):
        return int(lines[trigger_indices[0]].split(ions_trigger)[(- 1)])
    else:
        raise ValueError()
Returns the number of ions in the simulation

Args:
    filename (str): OUTCAR filename
    lines (list/None): lines read from the file

Returns:
    int: The number of ions in the simulation
@staticmethod
def get_number_of_atoms(filename='OUTCAR', lines=None):
    '\n        Returns the number of ions in the simulation\n\n        Args:\n            filename (str): OUTCAR filename\n            lines (list/None): lines read from the file\n\n        Returns:\n            int: The number of ions in the simulation\n\n        '
    ions_trigger = 'NIONS ='
    (trigger_indices, lines) = _get_trigger(lines=lines, filename=filename, trigger=ions_trigger)
    if (len(trigger_indices) != 0):
        return int(lines[trigger_indices[0]].split(ions_trigger)[(- 1)])
    else:
        raise ValueError()