From f54a2f93d2bcbd04da00d8d230e21a6b298d60ff Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 3 Nov 2014 14:38:04 +0800 Subject: [PATCH] remove kernel_attr (inline transform is now smart enough to autodetect) --- artiq/coredevice/dds.py | 2 -- artiq/coredevice/rtio.py | 4 ---- artiq/devices/pdq2/__init__.py | 2 -- 3 files changed, 8 deletions(-) diff --git a/artiq/coredevice/dds.py b/artiq/coredevice/dds.py index 67472177d..a8a726401 100644 --- a/artiq/coredevice/dds.py +++ b/artiq/coredevice/dds.py @@ -23,8 +23,6 @@ class DDS(AutoContext): self.previous_frequency = 0*MHz self.sw = rtio.RTIOOut(self, channel=self.rtio_switch) - kernel_attr = "previous_frequency" - @portable def frequency_to_ftw(self, frequency): """Returns the frequency tuning word corresponding to the given diff --git a/artiq/coredevice/rtio.py b/artiq/coredevice/rtio.py index cda20bb24..5e25e563c 100644 --- a/artiq/coredevice/rtio.py +++ b/artiq/coredevice/rtio.py @@ -18,8 +18,6 @@ class LLRTIOOut(AutoContext): self.previous_timestamp = int64(0) # in RTIO cycles self._set_oe() - kernel_attr = "previous_timestamp" - @kernel def _set_oe(self): syscall("rtio_oe", self.channel, 1) @@ -62,8 +60,6 @@ class _RTIOBase(AutoContext): self.previous_timestamp = int64(0) # in RTIO cycles self.previous_value = 0 - kernel_attr = "previous_timestamp previous_value" - @kernel def _set_oe(self, oe): syscall("rtio_oe", self.channel, oe) diff --git a/artiq/devices/pdq2/__init__.py b/artiq/devices/pdq2/__init__.py index 098536bfb..b4a7dc4ba 100644 --- a/artiq/devices/pdq2/__init__.py +++ b/artiq/devices/pdq2/__init__.py @@ -123,8 +123,6 @@ class CompoundPDQ2(AutoContext): self.current_frame = -1 self.next_sn = -1 - kernel_attr = "current_frame next_sn" - def create_frame(self): return _Frame(self.core)