{"action":"created","issue":{"url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/1220","repository_url":"https://api.github.com/repos/QCoDeS/Qcodes","labels_url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/1220/labels{/name}","comments_url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/1220/comments","events_url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/1220/events","html_url":"https://github.com/QCoDeS/Qcodes/issues/1220","id":348626271,"node_id":"MDU6SXNzdWUzNDg2MjYyNzE=","number":1220,"title":"Feature / Let measurement class register a ParamSpec","user":{"login":"WilliamHPNielsen","id":23165537,"node_id":"MDQ6VXNlcjIzMTY1NTM3","avatar_url":"https://avatars3.githubusercontent.com/u/23165537?v=4","gravatar_id":"","url":"https://api.github.com/users/WilliamHPNielsen","html_url":"https://github.com/WilliamHPNielsen","followers_url":"https://api.github.com/users/WilliamHPNielsen/followers","following_url":"https://api.github.com/users/WilliamHPNielsen/following{/other_user}","gists_url":"https://api.github.com/users/WilliamHPNielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/WilliamHPNielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WilliamHPNielsen/subscriptions","organizations_url":"https://api.github.com/users/WilliamHPNielsen/orgs","repos_url":"https://api.github.com/users/WilliamHPNielsen/repos","events_url":"https://api.github.com/users/WilliamHPNielsen/events{/privacy}","received_events_url":"https://api.github.com/users/WilliamHPNielsen/received_events","type":"User","site_admin":false},"labels":[{"id":769016285,"node_id":"MDU6TGFiZWw3NjkwMTYyODU=","url":"https://api.github.com/repos/QCoDeS/Qcodes/labels/new%20dataset","name":"new dataset","color":"dd7cbb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-08-08T08:31:40Z","updated_at":"2018-10-01T12:48:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"There is no way (exposed by the API) to register a `ParamSpec` directly with a `Measurement` object. That's a petty, since doing that is necessary in many situations.\r\n\r\nLet's fix that! I suppose the only question is: do we extend `register_custom_parameter` or make a new `register_paramspec`?\r\n\r\n@QCoDeS/core @cgranade \r\n"},"comment":{"url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/comments/425894705","html_url":"https://github.com/QCoDeS/Qcodes/issues/1220#issuecomment-425894705","issue_url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/1220","id":425894705,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTg5NDcwNQ==","user":{"login":"WilliamHPNielsen","id":23165537,"node_id":"MDQ6VXNlcjIzMTY1NTM3","avatar_url":"https://avatars3.githubusercontent.com/u/23165537?v=4","gravatar_id":"","url":"https://api.github.com/users/WilliamHPNielsen","html_url":"https://github.com/WilliamHPNielsen","followers_url":"https://api.github.com/users/WilliamHPNielsen/followers","following_url":"https://api.github.com/users/WilliamHPNielsen/following{/other_user}","gists_url":"https://api.github.com/users/WilliamHPNielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/WilliamHPNielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WilliamHPNielsen/subscriptions","organizations_url":"https://api.github.com/users/WilliamHPNielsen/orgs","repos_url":"https://api.github.com/users/WilliamHPNielsen/repos","events_url":"https://api.github.com/users/WilliamHPNielsen/events{/privacy}","received_events_url":"https://api.github.com/users/WilliamHPNielsen/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T12:48:17Z","updated_at":"2018-10-01T12:48:17Z","author_association":"CONTRIBUTOR","body":"@nataliejpg, I don't understand your example. What is wrong with doing the following?\r\n\r\n```python\r\ndummy = DummyInstrument('dummy', gates=['real_instrument_parameter'])\r\n\r\ndepends_on_parameter = Parameter('depends_on', set_cmd=None)\r\nanalysis_meas = Measurement()\r\nanalysis_meas.register_parameter(depends_on_parameter)\r\nanalysis_meas.register_parameter(\r\n        dummy.real_instrument_parameter, setpoints=[depends_on_parameter])\r\nanalysis_meas.write_period = 1\r\n\r\nwith analysis_meas.run() as datasaver:\r\n    for i in np.arange(10):\r\n        datasaver.add_result(\r\n            (dummy.real_instrument_parameter, dummy.real_instrument_parameter()),\r\n            (depends_on_parameter, i))\r\n```\r\n\r\n> If I have depends_on as a Parameter rather than a ParamSpec I then have to also set it within my for loop\r\n\r\nAs the snippet shows, that's simply not true. \r\n\r\n#1286 is a different story, but I think we all agree that that is very much a do-want."}}
{"actor":{"display_login":"WilliamHPNielsen"}}