Skip to content

Commit

Permalink
[uvtable] Avoid state in uvdist Fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
mtazzari committed Oct 31, 2017
1 parent 4e16105 commit 8f40dd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions uvplot/uvtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ def weights(self, value):

@property
def uvdist(self):
if self._uvdist is None:
self._uvdist = np.hypot(self._u, self._v)
self._uvdist = np.hypot(self._u, self._v)

return self._uvdist

Expand Down

0 comments on commit 8f40dd1

Please sign in to comment.