{"action":"opened","issue":{"url":"https://api.github.com/repos/m-labs/artiq/issues/416","repository_url":"https://api.github.com/repos/m-labs/artiq","labels_url":"https://api.github.com/repos/m-labs/artiq/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/m-labs/artiq/issues/416/comments","events_url":"https://api.github.com/repos/m-labs/artiq/issues/416/events","html_url":"https://github.com/m-labs/artiq/issues/416","id":151978474,"number":416,"title":"Changes to python script while experiment running changes experiment","user":{"login":"r-srinivas","id":11219276,"avatar_url":"https://avatars.githubusercontent.com/u/11219276?v=3","gravatar_id":"","url":"https://api.github.com/users/r-srinivas","html_url":"https://github.com/r-srinivas","followers_url":"https://api.github.com/users/r-srinivas/followers","following_url":"https://api.github.com/users/r-srinivas/following{/other_user}","gists_url":"https://api.github.com/users/r-srinivas/gists{/gist_id}","starred_url":"https://api.github.com/users/r-srinivas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-srinivas/subscriptions","organizations_url":"https://api.github.com/users/r-srinivas/orgs","repos_url":"https://api.github.com/users/r-srinivas/repos","events_url":"https://api.github.com/users/r-srinivas/events{/privacy}","received_events_url":"https://api.github.com/users/r-srinivas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-29T22:06:41Z","updated_at":"2016-04-29T22:06:41Z","closed_at":null,"body":"Using 1.0 rc3 on Windows. If I have an experiment that's running, if I make any changes to it while it's running and save the file it changes the experiment while it's running. I think it would be better if changes were only effected when the experiment is restarted. Basically a running experiment should be unaffected by changes in the python script. \r\n\r\nI was running the following experiment\r\n\r\n```python\r\nfrom artiq.experiment import *\r\n\r\nclass BD_Scan_Test(EnvExperiment):\r\n    \r\n    def build(self):\r\n        self.setattr_device(\"core\")\r\n        self.setattr_device(\"ttl1\")\r\n        self.setattr_device(\"ttl2\")\r\n        self.setattr_device(\"dds0\")\r\n        self.setattr_device(\"scheduler\")\r\n        #  self.setattr_device(\"ttl6\")\r\n        self.setattr_argument(\"frequency_scan\", Scannable(\r\n            default=LinearScan(100, 200, 100)))\r\n        self.setattr_argument(\"repetitions\", NumberValue(100, min=10, max=100))\r\n\r\n    def run(self):\r\n        for i, f in enumerate(self.frequency_scan):\r\n            self.core.comm.close()\r\n            self.scheduler.pause()\r\n            self.dds_scan(f)\r\n\r\n    @kernel\r\n    def dds_scan(self, frequency):\r\n        self.core.break_realtime()\r\n        self.dds0.set(frequency*MHz)\r\n        print(frequency)\r\n```\r\n\r\nAnd was just turning the print on and off. \r\n\r\n"}}