[docs]classDATAParser(TopologyReaderBase):"""Parse a LAMMPS DATA file for topology and coordinates. Note that LAMMPS DATA files can be used standalone. Both topology and coordinate parsing functionality is kept in this class as the topology and coordinate reader share many common functions By default the parser expects either *atomic* or *full* `atom_style` however this can be by passing an `atom_style` keyword argument, see :ref:`atom_style_kwarg`. .. versionadded:: 0.9.0 """format='DATA'defiterdata(self):withopenany(self.filename)asf:forlineinf:line=line.partition('#')[0].strip()ifline:yieldline