Commit c51f4b87 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes deprecation

Showing with 3 additions and 1 deletion
+3 -1
......@@ -154,8 +154,10 @@ class OhmPi(object):
' Use python/ipython to interact with OhmPi object...')
def __getattr__(self, name):
if not hasattr(self, name) and hasattr(deprecated, name):
if hasattr(deprecated, name):
return getattr(deprecated, name)
else:
return self.name
@staticmethod
def append_and_save(filename: str, last_measurement: dict, cmd_id=None):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment