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
|
import itertools
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
class Experiment:
|
class MPO:
|
||||||
channels = ""
|
channels = ""
|
||||||
parameters = ""
|
parameters = ""
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from artiq.language.units import *
|
from artiq.language.units import *
|
||||||
from artiq.language.experiment import *
|
from artiq.language.experiment import *
|
||||||
|
|
||||||
class AluminumSpectroscopy(Experiment):
|
class AluminumSpectroscopy(MPO):
|
||||||
channels = "core mains_sync laser_cooling spectroscopy spectroscopy_b state_detection pmt"
|
channels = "core mains_sync laser_cooling spectroscopy spectroscopy_b state_detection pmt"
|
||||||
parameters = "spectroscopy_freq photon_limit_low photon_limit_high"
|
parameters = "spectroscopy_freq photon_limit_low photon_limit_high"
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ from artiq.language.experiment import *
|
||||||
|
|
||||||
my_range = range
|
my_range = range
|
||||||
|
|
||||||
class CompilerTest(Experiment):
|
class CompilerTest(MPO):
|
||||||
channels = "core a b A B"
|
channels = "core a b A B"
|
||||||
|
|
||||||
def print_done(self):
|
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
|
from artiq.devices import corecom_serial, runtime, core, gpio_core
|
||||||
|
|
||||||
class CompilerTest(Experiment):
|
class CompilerTest(MPO):
|
||||||
channels = "core led"
|
channels = "core led"
|
||||||
|
|
||||||
def output(self, n):
|
def output(self, n):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from artiq.language.units import *
|
from artiq.language.units import *
|
||||||
from artiq.language.experiment import *
|
from artiq.language.experiment import *
|
||||||
|
|
||||||
class SimpleSimulation(Experiment):
|
class SimpleSimulation(MPO):
|
||||||
channels = "core a b c d"
|
channels = "core a b c d"
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
|
|
Loading…
Reference in New Issue