Ë
    Ìi  ã                   óD   — d dl mZmZ eej                  ddddfd„«       Zy)é    )ÚfixedÚutilsNzutf-8c                 óÆ  — ddl m} d}	d}
	 t        |d«      st        ||¬«      }d}	n|}t        |d«      st        ||¬«      }d}
n|}t	        j
                  ||«      }t        |«      }|	r|j                  «        |
r|j                  «        	 |t        j                  k(  r|j                  } |||||¬«      S # |	rj                  «        |
rj                  «        w w xY w)a9  
    Create a new table from a fixed-width file and a CSV schema.

    Schemas must be in the "ffs" format. There is a repository of such schemas
    maintained at `wireservice/ffs <https://github.com/wireservice/ffs>`_.

    :param path:
        File path or file-like object from which to read fixed-width data.
    :param schema_path:
        File path or file-like object from which to read schema (CSV) data.
    :param column_names:
        By default, these will be parsed from the schema. For alternatives, see
        :meth:`.Table.__init__`.
    :param column_types:
        See :meth:`.Table.__init__`.
    :param row_names:
        See :meth:`.Table.__init__`.
    :param encoding:
        Character encoding of the fixed-width file. Note: if passing in a file
        handle it is assumed you have already opened it with the correct
        encoding specified.
    :param schema_encoding:
        Character encoding of the schema file. Note: if passing in a file
        handle it is assumed you have already opened it with the correct
        encoding specified.
    r   )ÚTableFÚread)ÚencodingT)Ú	row_names)Úagate.tabler   ÚhasattrÚopenr   ÚreaderÚlistÚcloser   ÚdefaultÚ
fieldnames)ÚclsÚpathÚschema_pathÚcolumn_namesÚcolumn_typesr	   r   Úschema_encodingr   Úclose_fÚclose_schema_fÚfÚschema_fr   Úrowss                  úW/var/www/html/strategist-ai/venv/lib/python3.12/site-packages/agate/table/from_fixed.pyÚ
from_fixedr      sÔ   € õ: "à€Gà€NðÜ�t˜VÔ$Ü�T HÔ-ˆAØ‰GàˆAä�{ FÔ+Ü˜K°/ÔBˆHØ!‰NàˆHä—‘˜a Ó*ˆÜ�F‹|ˆñ Ø�G‰GŒIáØ�N‰NÕà”u—}‘}Ò$Ø×(Ñ(ˆá��| \¸YÔGÐGøñ Ø�G‰GŒIáØ�N‰NÕð ús   ŒAB9 Â9'C )Úagater   r   Úclassmethodr   r   © ó    r   ú<module>r#      s1   ðß ð Ø49·M±MÐPTÐ`dÐovØ&ò<Hó ñ<Hr"   