Skip to content

Commit

Permalink
feature: Allow for legacy code to run
Browse files Browse the repository at this point in the history
This allows for no exception but just a warning.
The deprecated argument is ignored.
  • Loading branch information
giulioungaretti committed Mar 21, 2017
1 parent 308eb15 commit f12ad25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qcodes/instrument/base.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Instrument base class."""
import logging
import numpy as np
import time
import warnings
import weakref
import numpy as np

from qcodes.utils.metadata import Metadatable
from qcodes.utils.helpers import DelegateAttributes, strip_attrs, full_class
Expand Down Expand Up @@ -41,6 +42,9 @@ class Instrument(Metadatable, DelegateAttributes):

def __init__(self, name, **kwargs):
self._t0 = time.time()
if kwargs.pop('server_name', False):
warnings.warn("server_name argument not supported any more",
stacklevel=0)
super().__init__(**kwargs)
self.parameters = {}
self.functions = {}
Expand Down

0 comments on commit f12ad25

Please sign in to comment.