{"action":"closed","issue":{"url":"https://api.github.com/repos/Queens-Physics/qexpy/issues/26","repository_url":"https://api.github.com/repos/Queens-Physics/qexpy","labels_url":"https://api.github.com/repos/Queens-Physics/qexpy/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/Queens-Physics/qexpy/issues/26/comments","events_url":"https://api.github.com/repos/Queens-Physics/qexpy/issues/26/events","html_url":"https://github.com/Queens-Physics/qexpy/issues/26","id":201935161,"number":26,"title":"qexpy.error.Measurement does not recognize lists of values with their corresponding uncertainties","user":{"login":"ReckoningReckoner","id":13295484,"avatar_url":"https://avatars.githubusercontent.com/u/13295484?v=3","gravatar_id":"","url":"https://api.github.com/users/ReckoningReckoner","html_url":"https://github.com/ReckoningReckoner","followers_url":"https://api.github.com/users/ReckoningReckoner/followers","following_url":"https://api.github.com/users/ReckoningReckoner/following{/other_user}","gists_url":"https://api.github.com/users/ReckoningReckoner/gists{/gist_id}","starred_url":"https://api.github.com/users/ReckoningReckoner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReckoningReckoner/subscriptions","organizations_url":"https://api.github.com/users/ReckoningReckoner/orgs","repos_url":"https://api.github.com/users/ReckoningReckoner/repos","events_url":"https://api.github.com/users/ReckoningReckoner/events{/privacy}","received_events_url":"https://api.github.com/users/ReckoningReckoner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-19T18:12:38Z","updated_at":"2017-01-19T21:44:44Z","closed_at":"2017-01-19T21:44:43Z","body":"In the [documentation](http://qexpy.readthedocs.io/en/latest/uncertainties.html), the following example is given:\r\n\r\n`y = e.Measurement([10, 9, 11], [1, 0.5, 0.25])`\r\n\r\nIf I try to run that code, I get the following TypeError:\r\n`TypeError: Input must be either a single array of values,\r\n                      or the central value and uncertainty in one measurement`\r\n\r\nLooking at the [code](https://github.com/Queens-Physics/qexpy/blob/master/qexpy/error.py#L35), I've noticed that the if statement will always throw a `TypeError` if the two args aren't of a [qexpy.utils.number_types](https://github.com/Queens-Physics/qexpy/blob/master/qexpy/utils.py#L23). I think the documentation should be changed to reflect the fact that this feature is not implemented in the official release.\r\n\r\nNote: I have installed qexpy by using pip3 \r\n\r\n"}}
{"actor":{"display_login":"ReckoningReckoner"}}