Skip to content

Commit

Permalink
Fix stacklevel
Browse files Browse the repository at this point in the history
Signed-off-by: Francesc Marti Escofet <[email protected]>
  • Loading branch information
fmartiescofet committed Jan 9, 2025
1 parent 63725a3 commit 948b553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terratorch/models/decoders/upernet_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(
warnings.warn(
"DeprecationWarning: scale_modules is deprecated and will be removed in future versions. "
"Use LearnedInterpolateToPyramidal neck instead.",
stacklevel=2,
stacklevel=1,
)

self.scale_modules = scale_modules
Expand Down

0 comments on commit 948b553

Please sign in to comment.