Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move code into labrad.servers package #418

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
260 changes: 0 additions & 260 deletions ADR/OrderedDict.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
from twisted.internet.task import LoopingCall
from twisted.internet.defer import inlineCallbacks, returnValue

from OrderedDict import OrderedDict # if we ever go to 2.7 we can use collections.OrderedDict
from collections import OrderedDict
import math, time

K, A, V, T, Ohm = Unit('K'), Unit('A'), Unit('V'), Unit('T'), Unit('Ohm')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
timeout = 20
### END NODE INFO
"""

from labrad import types as T, util
from labrad.server import LabradServer, setting, Signal
from labrad.util import hydrant
Expand All @@ -39,8 +38,8 @@
from twisted.internet.defer import inlineCallbacks, returnValue
from twisted.python import log

from fit_spectroscopy import *
import fit_squid_steps
from labrad.servers.FitServer.fit_spectroscopy import *
from labrad.servers.FitServer import fit_squid_steps

import time
from datetime import datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
import re
from pylab import *
from numpy import *
from dv_search import dv_search
import sys,traceback

from labrad.servers.FitServer.dv_search import dv_search


## FUCKUP: (['','Markus','Experiments','2008/04/06 - Check Qubits'],32)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
import re
import pylab
from numpy import *
from dv_search import dv_search
import sys,traceback
import fitting
import sys, traceback

from labrad.servers.FitServer.dv_search import dv_search
from labrad.servers.FitServer import fitting

class step_edge_fit:
def __init__(self,amplitude,probability):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
from labrad.server import LabradServer, setting
from labrad.devices import DeviceServer, DeviceWrapper

import ethernet_spoofer as es
from labrad.servers.GHzDACs import ethernet_spoofer as es

REGISTRY_PATH = ['', 'Servers', 'DAC Emulator']

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys, labrad, time, math
from PyQt4 import QtCore,QtGui,uic,Qt
from twisted.internet.defer import inlineCallbacks, returnValue
from LabRADPlotWidget import LabRADPlotWidget
from labrad.servers.GUIs.ADR.LabRADPlotWidget import LabRADPlotWidget

DEFAULT_ADR = 'quaid' # 'cause i'm lazy

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from PyQt4 import QtCore, QtGui, uic
from twisted.internet.defer import inlineCallbacks

from LabRADPlotWidget2 import LabRADPlotWidget2
from labrad.servers.GUIs.ADR.LabRADPlotWidget2 import LabRADPlotWidget2


DEFAULT_ADR = 'quaid' # 'cause i'm lazy
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@

from labrad.server import LabradServer, setting

from circuitsim import (h, hbar, phi0bar, Circuit, Capacitor, Inductor,
Mutual, Junction, Resistor, CurrentBias)
from processtools import new_priority
from labrad.servers.Simulations.circuitsim import (
h, hbar, phi0bar, Circuit, Capacitor, Inductor, Mutual, Junction, Resistor,
CurrentBias)
from labrad.servers.Simulations.processtools import new_priority

class CircuitSimulator(LabradServer):
name = 'Circuit Simulator'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from scipy.integrate import odeint
from scipy.optimize import leastsq

from processtools import new_priority
from labrad.servers.Simulations.processtools import new_priority

# define constants
h = 6.626e-34
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions labrad/servers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
# - added support for setting the border values - necessary for dualblock
# - added support for disabling deconvolution on all IQ boards and/or all Z boards


from twisted.internet.defer import DeferredLock, inlineCallbacks, returnValue
from twisted.internet.threads import deferToThread

Expand All @@ -52,8 +51,8 @@
from labrad.types import Error
from labrad.server import LabradServer, setting

from ghzdac import IQcorrector, DACcorrector, keys
from ghzdac.correction import fastfftlen
from labrad.servers.ghzdac import IQcorrector, DACcorrector, keys
from labrad.servers.ghzdac.correction import fastfftlen


class CalibrationNotFoundError(Error):
Expand Down
4 changes: 2 additions & 2 deletions data_vault.py → labrad/servers/data_vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
import labrad.util
import labrad.wrappers

from datavault import SessionStore
from datavault.server import DataVault
from labrad.servers.datavault import SessionStore
from labrad.servers.datavault.server import DataVault


@inlineCallbacks
Expand Down
Loading