forked from M-Labs/artiq
1
0
Fork 0

Experiment -> MPO (Managed Parameter Object)

This commit is contained in:
Sebastien Bourdeauducq 2014-07-10 15:29:22 +02:00
parent 668e76fa02
commit d76182a3ee
5 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
import itertools
from collections import namedtuple
class Experiment:
class MPO:
channels = ""
parameters = ""

View File

@ -1,7 +1,7 @@
from artiq.language.units import *
from artiq.language.experiment import *
class AluminumSpectroscopy(Experiment):
class AluminumSpectroscopy(MPO):
channels = "core mains_sync laser_cooling spectroscopy spectroscopy_b state_detection pmt"
parameters = "spectroscopy_freq photon_limit_low photon_limit_high"

View File

@ -3,7 +3,7 @@ from artiq.language.experiment import *
my_range = range
class CompilerTest(Experiment):
class CompilerTest(MPO):
channels = "core a b A B"
def print_done(self):

View File

@ -1,7 +1,7 @@
from artiq.language.experiment import Experiment, kernel
from artiq.language.experiment import MPO, kernel
from artiq.devices import corecom_serial, runtime, core, gpio_core
class CompilerTest(Experiment):
class CompilerTest(MPO):
channels = "core led"
def output(self, n):

View File

@ -1,7 +1,7 @@
from artiq.language.units import *
from artiq.language.experiment import *
class SimpleSimulation(Experiment):
class SimpleSimulation(MPO):
channels = "core a b c d"
@kernel