WL iLddlmZddlmZmZddlmZmZddlm Z m Z m Z m Z ddl mZmZddlmZmZerddlmZd dZd d Z dd Z dd Zy)) annotations) TYPE_CHECKINGcast)FillTypeLineType)concat_codes_or_noneconcat_offsets_or_noneconcat_points_or_noneconcat_points_or_none_with_nan) as_fill_type as_line_type) check_filled check_linesNct|}|tjtjfvr|St ||t |ddkr|St rttj|}t|d}|tjk(r>t rttj|}|dgdgf}|S|gt|dgf}|S|tjk(r>t rttj|}|dgdgf}|S|gt!|dgf}|S|tj"k(rPt rttj$|}| dgdgdgf}|St!|d}|gt|dg|gf}|S|tj&k(rPt rttj(|}| dgdgdgf}|St!|d}|gt!|dg|gf}|St+d|)aReturn 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 rNzInvalid FillType )r r OuterCode OuterOffsetrlenrrcpyFillReturn_Chunkr ChunkCombinedCodeFillReturn_ChunkCombinedCoderChunkCombinedOffsetFillReturn_ChunkCombinedOffsetr ChunkCombinedCodeOffset"FillReturn_ChunkCombinedCodeOffsetChunkCombinedOffsetOffset$FillReturn_ChunkCombinedOffsetOffset ValueError)filled fill_typepointsret1ret2ret3 outer_offsetsret4s W/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/contourpy/dechunk.pydechunk_filledr*s!$Y'IX'')=)=>> # 6!9~ c**F3 "6!9 -FH... #::FCF >7;ftf5ED H3F1I>?@D h22 2 #<9=7GD H5fQi@ABD h66 6 #@@&IF >=AFTFTF;SD 36!9=MH3F1I>?-QD h88 8 #BBFKF >?Cftftf=UD 36!9=MH5fQi@AM?SD ,YK899ct|}|tjtjfvr|St ||t |ddkr|St rttj|}|tjk(rLt rttj|}t|d}|dgdgf}|S|gt|dgf}|S|tjk(rLt rttj|}t|d}|dgdgf}|S|gt!|dgf}|S|tj"k(r4t rttj$|}t'|d}|gf}|St)d|)aReturn 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 rSeparate SeparateCoderrrrrLineReturn_ChunkrLineReturn_ChunkCombinedCoder rrLineReturn_ChunkCombinedOffsetr ChunkCombinedNanLineReturn_ChunkCombinedNanr r )lines line_typer#r$r%r&s r) dechunk_linesr6Zs$Y'IX&&(=(=>> y! 58}q S))51H... 995AE&uQx0 >7;ftf5ED H3E!H=>?D h22 2 ;;UCE&uQx0 >9=7GD H5eAh?@AD h// / 88%@E/a928  ,YK899r+ct|}|tjtjfvr|S|Dcgc]}t ||c}Scc}w)aReturn 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*Y'IX'')=)=>>>9D EM% + EE Er:)r!cpy.FillReturnr"FillType | strreturnr>)r4cpy.LineReturnr5LineType | strr@rA)r8list[cpy.FillReturn]r"r?r@rC)r<list[cpy.LineReturn]r5rBr@rD) __future__rtypingrrcontourpy._contourpyrrcontourpy.arrayrr r r contourpy.enum_utilr r contourpy.typecheckrr _contourpyrr*r6r9r=r+r)rMsy"&3 ;9&D:N9:xJ&JJJ<F%FFFr+