forked from M-Labs/artiq
artiq.experiment: update examples
This commit is contained in:
parent
765001054d
commit
905063c1b1
@ -1,6 +1,6 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class SubComponent1(HasEnvironment):
|
class SubComponent1(HasEnvironment):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class PhotonHistogram(EnvExperiment):
|
class PhotonHistogram(EnvExperiment):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class BlinkForever(EnvExperiment):
|
class BlinkForever(EnvExperiment):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class DDSTest(EnvExperiment):
|
class DDSTest(EnvExperiment):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class Handover(EnvExperiment):
|
class Handover(EnvExperiment):
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class Mandelbrot(EnvExperiment):
|
class Mandelbrot(EnvExperiment):
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Copyright (C) 2014, 2015 Robert Jordens <jordens@gmail.com>
|
# Copyright (C) 2014, 2015 Robert Jordens <jordens@gmail.com>
|
||||||
|
|
||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class PulseNotReceivedError(Exception):
|
class PulseNotReceivedError(Exception):
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
from artiq.wavesynth.coefficients import SplineSource
|
from artiq.wavesynth.coefficients import SplineSource
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import random
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from scipy.optimize import curve_fit
|
from scipy.optimize import curve_fit
|
||||||
|
|
||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
def model(x, F0):
|
def model(x, F0):
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from itertools import count
|
from itertools import count
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class RunForever(EnvExperiment):
|
class RunForever(EnvExperiment):
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class _PayloadNOP(EnvExperiment):
|
class _PayloadNOP(EnvExperiment):
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
|
|
||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class DDSSetter(EnvExperiment):
|
class DDSSetter(EnvExperiment):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class TerminateAll(EnvExperiment):
|
class TerminateAll(EnvExperiment):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class AluminumSpectroscopy(EnvExperiment):
|
class AluminumSpectroscopy(EnvExperiment):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from artiq.language import *
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
class SimpleSimulation(EnvExperiment):
|
class SimpleSimulation(EnvExperiment):
|
||||||
|
Loading…
Reference in New Issue
Block a user