Skip to content

Commit

Permalink
add Parameter checks
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon committed Oct 16, 2022
1 parent 8a04a4a commit a0be633
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion denoiseMC.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
def denoiseMC(clip, denoise_fn, radius: int = 2, search: int = 3, blksize: int = 16):
from vapoursynth import core

mv = core.mv
std = core.std

if clip is None:
raise ValueError('clip is required')

if denoise_fn is None:
raise ValueError('denoise_fn is required')

if radius < 1:
raise ValueError('radius must be greater than 0')

Expand Down

0 comments on commit a0be633

Please sign in to comment.