{"action":"closed","issue":{"url":"https://api.github.com/repos/colinoflynn/pico-python/issues/52","repository_url":"https://api.github.com/repos/colinoflynn/pico-python","labels_url":"https://api.github.com/repos/colinoflynn/pico-python/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/colinoflynn/pico-python/issues/52/comments","events_url":"https://api.github.com/repos/colinoflynn/pico-python/issues/52/events","html_url":"https://github.com/colinoflynn/pico-python/issues/52","id":169623703,"number":52,"title":"getUnitInfo('VarianInfo') breaks ps5000a","user":{"login":"mn14tm","id":11302603,"avatar_url":"https://avatars.githubusercontent.com/u/11302603?v=3","gravatar_id":"","url":"https://api.github.com/users/mn14tm","html_url":"https://github.com/mn14tm","followers_url":"https://api.github.com/users/mn14tm/followers","following_url":"https://api.github.com/users/mn14tm/following{/other_user}","gists_url":"https://api.github.com/users/mn14tm/gists{/gist_id}","starred_url":"https://api.github.com/users/mn14tm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mn14tm/subscriptions","organizations_url":"https://api.github.com/users/mn14tm/orgs","repos_url":"https://api.github.com/users/mn14tm/repos","events_url":"https://api.github.com/users/mn14tm/events{/privacy}","received_events_url":"https://api.github.com/users/mn14tm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/colinoflynn/pico-python/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-05T14:46:22Z","updated_at":"2016-08-09T12:52:23Z","closed_at":"2016-08-09T12:52:23Z","body":"I am using a ps5242a and since updating my repository with the branch master I get an error upon initialising the picoscope. The line:\r\n\r\n`self.model = super(PS5000a, self).getUnitInfo('VarianInfo')`\r\n\r\nbrings up the error \r\n\r\n> TypeError: an integer is required (got type NoneType)\r\n\r\nwhen executing\r\n` m = self.lib.ps5000aGetUnitInfo(c_int16(self.handle), byref(s),\r\n                                       c_int16(len(s)), byref(requiredSize),\r\n                                       c_enum(info))`\r\n\r\nFor the moment I have commented out self.model part and by default just use the statements in the else section. "}}
{"actor":{"display_login":"mn14tm"}}