Skip to content

Commit

Permalink
Added comment explaining the odd placement of super().__init__ call
Browse files Browse the repository at this point in the history
  • Loading branch information
javiber committed Jun 5, 2024
1 parent e153534 commit 92eacd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions temporian/core/operators/window/moving_quantile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def __init__(
f"Received {quantile}"
)
self._quantile = quantile
# This line should be at the top but `BaseWindowOperator.__init__` calls
# `self.check` which fails if `this._quantile` is not set
super().__init__(input, window_length, sampling)

@property
Expand Down

0 comments on commit 92eacd6

Please sign in to comment.