Skip to content

Commit

Permalink
Fix typo in wrapping of set_raw method (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen authored and WilliamHPNielsen committed Oct 25, 2017
1 parent 1886482 commit 9d01779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qcodes/instrument/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ def __init__(self, name: str,
'define get_raw in your subclass instead.' )
self.get = self._wrap_get(self.get)
if hasattr(self, 'set_raw'):
self.set = self._wrap_get(self.set_raw)
self.set = self._wrap_set(self.set_raw)
elif hasattr(self, 'set'):
warnings.warn('Wrapping set method, original set method will not '
'be directly accessible. It is recommended to '
'define get_raw in your subclass instead.' )
'define set_raw in your subclass instead.' )
self.set = self._wrap_set(self.set)

# subclasses should extend this list with extra attributes they
Expand Down

0 comments on commit 9d01779

Please sign in to comment.