Skip to content

Commit

Permalink
Merge pull request #293 from Ciela-Institute/pixelatedpad
Browse files Browse the repository at this point in the history
bug fix: Pixelated pad parameter check for clamp
  • Loading branch information
ConnorStoneAstro authored Nov 27, 2024
2 parents 34b75e8 + e33d715 commit 90a8433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caustics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def interp2d(
raise ValueError(f"x must be 0 or 1D (received {x.ndim}D tensor)")
if y.ndim > 1:
raise ValueError(f"y must be 0 or 1D (received {y.ndim}D tensor)")
if padding_mode not in ["extrapolate", "zeros"]:
if padding_mode not in ["extrapolate", "clamp", "zeros"]:
raise ValueError(f"{padding_mode} is not a valid padding mode")

if padding_mode == "clamp":
Expand Down

0 comments on commit 90a8433

Please sign in to comment.