Files
intellecton/venv/lib/python3.12/site-packages/contourpy/__pycache__/dechunk.cpython-312.pyc
T

80 lines
8.0 KiB
Plaintext
Raw Normal View History

Ë
†RjLãó°ddlmZddlmZmZddlmZmZddlm Z m
Z
m Z m Z ddl
mZmZddlmZmZerddlmZd dZd
d „Z dd
Z dd Zy)é)Ú annotations)Ú
TYPE_CHECKINGÚcast)ÚFillTypeÚLineType)Úconcat_codes_or_noneÚconcat_offsets_or_noneÚconcat_points_or_noneÚconcat_points_or_none_with_nan)Ú as_fill_typeÚ as_line_type)Ú check_filledÚ check_linesNcóæt|«}|tjtjfvr|St ||«t |d«dkr|St rttj|«}t|d«}|tjk(r>t rttj|«}|dgdgf}|S|gt|d«gf}|S|tjk(r>t rttj|«}|dgdgf}|S|gt!|d«gf}|S|tj"k(rPt rttj$|«}|
dgdgdgf}|St!|d«}|gt|d«g|gf}|S|tj&k(rPt rttj(|«}|
dgdgdgf}|St!|d«}|gt!|d«g|gf}|St+d|«)Return the specified filled contours with chunked data moved into the first chunk.
Filled contours that are not chunked (``FillType.OuterCode`` and ``FillType.OuterOffset``) and
those that are but only contain a single chunk are returned unmodified. Individual polygons are
unchanged, they are not geometrically combined.
Args:
filled (sequence of arrays): Filled contour data, such as returned by
:meth:`.ContourGenerator.filled`.
fill_type (FillType or str): Type of :meth:`~.ContourGenerator.filled` as enum or string
equivalent.
Return:
Filled contours in a single chunk.
.. versionadded:: 1.2.0
rézInvalid FillType )r rÚ OuterCodeÚ OuterOffsetrÚlenrrÚcpyÚFillReturn_Chunkr
ÚChunkCombinedCodeÚFillReturn_ChunkCombinedCoderÚChunkCombinedOffsetÚFillReturn_ChunkCombinedOffsetr ÚChunkCombinedCodeOffsetÚ"FillReturn_ChunkCombinedCodeOffsetÚChunkCombinedOffsetOffsetÚ$FillReturn_ChunkCombinedOffsetOffsetÚ
ValueError)ÚfilledÚ fill_typeÚpointsÚret1Úret2Úret3Ú
outer_offsetsÚret4s úT/home/antigravity/intellecton/venv/lib/python3.12/site-packages/contourpy/dechunk.pyÚdechunk_filledr*s!ô$˜'€Ià”X××)=Ñ)=Ј
ä˜Ô
ˆ6!‰9ƒ~˜Òàˆ
åÜ”c×*¨FÓÜ
" 6¨!¡9Ó
-€Fà”H× Üœ#×:¸Cˆ ˆ>Ø7;°f¸t¸fÐ5Eˆˆ ð3°F¸1±IÓ@ˆˆ Ø ”h×2Ò 2Ý Üœ#×<¸Eˆ ˆ>Ø9=¸ÀÀÐ7GˆDðˆ ð5°f¸Q±iÓBˆD؈ Ø ”h×6Ò 6Ý Üœ#×@À&ÓIˆ ˆ>Ø=A¸FÀTÀFÈTÈFÐ;Sˆˆ ô3°6¸!±9Ó=ˆMØ3°F¸1±IÓ?À-ÀÐQˆD؈ Ø ”h×8Ò 8Ý Üœ#×BÀFÓKˆ ˆ>Ø?C¸fÀtÀfÈtÈfÐ=Uˆˆ ô3°6¸!±9Ó=ˆMØ5°f¸Q±iÓAÀMÀ?ÐSˆD؈ äÐ,¨Y¨KÐcót|«}|tjtjfvr|St ||«t |d«dkr|St rttj|«}|tjk(rLt rttj|«}t|d«}|dgdgf}|S|gt|d«gf}|S|tjk(rLt rttj|«}t|d«}|dgdgf}|S|gt!|d«gf}|S|tj"k(r4t rttj$|«}t'|d«}|gf}|St)d|«)Return the specified contour lines with chunked data moved into the first chunk.
Contour lines that are not chunked (``LineType.Separate`` and ``LineType.SeparateCode``) and
those that are but only contain a single chunk are returned unmodified. Individual lines are
unchanged, they are not geometrically combined.
Args:
lines (sequence of arrays): Contour line data, such as returned by
:meth:`.ContourGenerator.lines`.
line_type (LineType or str): Type of :meth:`~.ContourGenerator.lines` as enum or string
equivalent.
Return:
Contour lines in a single chunk.
.. versionadded:: 1.2.0
rrNrzInvalid LineType )r
rÚSeparateÚ SeparateCoderrrrrÚLineReturn_ChunkrÚLineReturn_ChunkCombinedCoder
rrÚLineReturn_ChunkCombinedOffsetr ÚChunkCombinedNanÚLineReturn_ChunkCombinedNanr r )ÚlinesÚ line_typer#r$r%r&s r)Ú
dechunk_linesr6Zsˆô$˜'€Ià”X××(=Ñ(=Ј ä
ˆ5‰8ƒ}àˆ åÜ”S×)¨5Óà”H× Üœ×9¸Aˆ& u¨Q¡xÓ0ˆØ ˆ>Ø7;°f¸t¸fÐ5Eˆˆ ð3°E¸!±HÓ?ˆˆ Ø ”h×2Ò 2Ý Üœ×;¸Cˆ& u¨Q¡xÓ0ˆØ ˆ>Ø9=¸ÀÀÐ7GˆDðˆ ð5°e¸A±hÓAˆD؈ Ø ”h×/Ò /Ý Üœ×8¸%Ó@ˆEܰa±ÓØ28°° ˆØˆ äÐ,¨Y¨KÐ9r+cóžt|«}|tjtjfvr|S|Dcgc]}t ||«Œc}Scc}w)Return multiple sets of filled contours with chunked data moved into the first chunks.
Filled contours that are not chunked (``FillType.OuterCode`` and ``FillType.OuterOffset``) and
those that are but only contain a single chunk are returned unmodified. Individual polygons are
unchanged, they are not geometrically combined.
Args:
multi_filled (nested sequence of arrays): Filled contour data, such as returned by
:meth:`.ContourGenerator.multi_filled`.
fill_type (FillType or str): Type of :meth:`~.ContourGenerator.filled` as enum or string
equivalent.
Return:
Multiple sets of filled contours in a single chunk.
.. versionadded:: 1.3.0
)r rrrr*)Ú multi_filledr"r!s r)Údechunk_multi_filledr9sHô*˜'€Ià”X××)=Ñ)=ÐÐà<HÖ I°&ŒN˜6  IùÒ ´A
cóžt|«}|tjtjfvr|S|Dcgc]}t ||«Œc}Scc}w)Return multiple sets of contour lines with all chunked data moved into the first chunks.
Contour lines that are not chunked (``LineType.Separate`` and ``LineType.SeparateCode``) and
those that are but only contain a single chunk are returned unmodified. Individual lines are
unchanged, they are not geometrically combined.
Args:
multi_lines (nested sequence of arrays): Contour line data, such as returned by
:meth:`.ContourGenerator.multi_lines`.
line_type (LineType or str): Type of :meth:`~.ContourGenerator.lines` as enum or string