diff --git a/ohmpi.py b/ohmpi.py index a727fc005025244b581240820011d47190823365..308d0ce27eddaad272a94f81db1d4515e874171f 100644 --- a/ohmpi.py +++ b/ohmpi.py @@ -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):