From 5f53eb3fd3b03afea3a5feb16c708c32278d9bbf Mon Sep 17 00:00:00 2001 From: taoning Date: Wed, 30 Oct 2024 15:08:45 -0700 Subject: [PATCH] util: add calcfast to evalglare --- pyradiance/util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyradiance/util.py b/pyradiance/util.py index f750191..e8e3c4e 100644 --- a/pyradiance/util.py +++ b/pyradiance/util.py @@ -39,6 +39,7 @@ def evalglare( search_radius: float = 0.2, version: bool = False, source_color: Optional[tuple[float, float, float]] = None, + fast: Optional[int] = None, ): """Run evalglare on a Radiance image. @@ -80,6 +81,8 @@ def evalglare( cmd.extend(["-i", str(ev)]) else: cmd.extend(["-I", *map(str, ev)]) + if fast is not None: + cmd.append(f"-{fast}") if view is not None: cmd.extend(view) if check_file is not None: