Skip to content

Commit

Permalink
remove more_itertools dep and fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ichunjo committed Dec 15, 2024
1 parent 900d83f commit cc186fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vardefunc/vsjet_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import vsmasktools
import vstools

from more_itertools import unzip
from vsexprtools import ExprOp, ExprToken, norm_expr
from vskernels import Catrom, KernelT, Point
from vsmasktools import GenericMaskT, Morpho, SobelStd, XxpandMode, normalize_mask
Expand Down Expand Up @@ -137,7 +136,7 @@ def replace_ranges(

return vstools.replace_ranges(clip_a, clip_b, ranges, exclusive, mismatch, prop_src=prop_src)

rclips: tuple[tuple[vs.VideoNode, FrameRangeN | FrameRangesN | RangesCallBack], ...] = clip_b
rclips: tuple[tuple[vs.VideoNode, FrameRangeN | FrameRangesN | RangesCallBack], ...] = args

if not exclusive:
raise NotImplementedError
Expand All @@ -156,7 +155,7 @@ def replace_ranges(
for (i, (c, r)) in enumerate(rclips, 1)
]

clips, indices_iter = cast(tuple[Iterator[vs.VideoNode], Iterator[NDArray[AnyInt]]], unzip(rrclips))
clips, indices_iter = cast(tuple[Iterator[vs.VideoNode], Iterator[NDArray[AnyInt]]], zip(*rrclips))

indices = list[NDArray[AnyInt]]()

Expand Down

0 comments on commit cc186fb

Please sign in to comment.