forked from M-Labs/artiq
Experiment -> MPO (Managed Parameter Object)
This commit is contained in:
parent
668e76fa02
commit
d76182a3ee
@ -1,7 +1,7 @@
|
||||
import itertools
|
||||
from collections import namedtuple
|
||||
|
||||
class Experiment:
|
||||
class MPO:
|
||||
channels = ""
|
||||
parameters = ""
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user