
     iG	                     J    d Z ddlmZ ddlmZ ddlmZ  G d de          ZdS )	a:  
Minimal topology parser
=======================

Parses only the number of atoms from a coordinate/trajectory file.
This minimal topology can be used to access coordinate data without the need
for a full-fledged topology file.



Classes
-------

.. autoclass:: MinimalParser
   :members:
   :inherited-members:

   )get_reader_for)Topology   )TopologyReaderBasec                       e Zd ZdZdZd ZdS )MinimalParsera  Produces a minimal topology from only the number of atoms.

    This requires that the number of atoms be given in one of two ways:
     - The number of atoms can be given as the 'n_atoms' keyword argument.
     - If this is not given, then a Reader object for the filename will be
       created and the `parse_n_atoms` method on this Reader will be called,
       (requiring that the Reader has this capability).

    This requires that the coordinate format has
    MINIMALc                     	 |d         }n7# t           $ r* t          | j                  } |j        | j        fi |}Y nw xY wt	          |dd          S )z$Return the minimal *Topology* objectn_atomsr   )KeyErrorr   filenameparse_n_atomsr   )selfkwargsr   readers       k/srv/www/vhosts/g4struct/public_html/venv/lib/python3.11/site-packages/MDAnalysis/topology/MinimalParser.pyparsezMinimalParser.parse>   sv    	DY'GG 	D 	D 	D#DM22F*f*4=CCFCCGGG	D A&&&s    1??N)__name__
__module____qualname____doc__formatr        r   r   r   0   s4        	 	 F' ' ' ' 'r   r   N)r   core._get_readersr   core.topologyr   baser   r   r   r   r   <module>r      s|   0 & / . . . . . $ $ $ $ $ $ $ $ $ $ $ $' ' ' ' '& ' ' ' ' 'r   