Skip to content

Commit

Permalink
Silently return if x and y are not the same length
Browse files Browse the repository at this point in the history
  • Loading branch information
haticekaratay committed Nov 1, 2023
1 parent f783094 commit 9a45366
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jdaviz/configs/default/plugins/plot_options/plot_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,14 @@ def __init__(self):

@property
def knots(self):
return (self.x, self.y)
return (self._x, self._y)

@knots.setter
def knots(self, value):
x, y = value
if len(x) != len(y):
# Silently return
return
self.update_knots(x, y)

def __call__(self, values, out=None, clip=False):
Expand Down

0 comments on commit 9a45366

Please sign in to comment.