{"action":"created","issue":{"url":"https://api.github.com/repos/coddingtonbear/python-measurement/issues/5","labels_url":"https://api.github.com/repos/coddingtonbear/python-measurement/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/coddingtonbear/python-measurement/issues/5/comments","events_url":"https://api.github.com/repos/coddingtonbear/python-measurement/issues/5/events","html_url":"https://github.com/coddingtonbear/python-measurement/issues/5","id":57474997,"number":5,"title":"Cannot do operations on temperatures","user":{"login":"Gagaro","id":3845486,"avatar_url":"https://avatars.githubusercontent.com/u/3845486?v=3","gravatar_id":"","url":"https://api.github.com/users/Gagaro","html_url":"https://github.com/Gagaro","followers_url":"https://api.github.com/users/Gagaro/followers","following_url":"https://api.github.com/users/Gagaro/following{/other_user}","gists_url":"https://api.github.com/users/Gagaro/gists{/gist_id}","starred_url":"https://api.github.com/users/Gagaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gagaro/subscriptions","organizations_url":"https://api.github.com/users/Gagaro/orgs","repos_url":"https://api.github.com/users/Gagaro/repos","events_url":"https://api.github.com/users/Gagaro/events{/privacy}","received_events_url":"https://api.github.com/users/Gagaro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-12T15:32:15Z","updated_at":"2015-02-12T16:29:13Z","closed_at":null,"body":"Hello,\r\n\r\nWhen doing operation on temperatures which are not in kelvin, the results are wrong. For example, for temperatures in celsius, the temperatures are first converted in kelvin before being added:\r\n\r\n```Python\r\na = Temperature(c=10)  # k=283.15\r\nb = Temperature(c=20)  # k=293.15\r\nc = a + b  # Temperature(k=576.30)\r\n```\r\n\r\nAnd ``576.30 k = 303.15 c``. Thus ``a + b`` gives us ``Temperature(c=303.15)``."},"comment":{"url":"https://api.github.com/repos/coddingtonbear/python-measurement/issues/comments/74101809","html_url":"https://github.com/coddingtonbear/python-measurement/issues/5#issuecomment-74101809","issue_url":"https://api.github.com/repos/coddingtonbear/python-measurement/issues/5","id":74101809,"user":{"login":"Gagaro","id":3845486,"avatar_url":"https://avatars.githubusercontent.com/u/3845486?v=3","gravatar_id":"","url":"https://api.github.com/users/Gagaro","html_url":"https://github.com/Gagaro","followers_url":"https://api.github.com/users/Gagaro/followers","following_url":"https://api.github.com/users/Gagaro/following{/other_user}","gists_url":"https://api.github.com/users/Gagaro/gists{/gist_id}","starred_url":"https://api.github.com/users/Gagaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gagaro/subscriptions","organizations_url":"https://api.github.com/users/Gagaro/orgs","repos_url":"https://api.github.com/users/Gagaro/repos","events_url":"https://api.github.com/users/Gagaro/events{/privacy}","received_events_url":"https://api.github.com/users/Gagaro/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T16:29:13Z","updated_at":"2015-02-12T16:29:13Z","body":"Yes you're right, doing an average does work. My issue was that I was doing the average of multiple temperates using sum:\r\n\r\n```Python\r\ntemperatures = [Temperature(c=20), Temperature(c=30)]\r\ntotal = sum(temperatures, Temperature(c=0))\r\ntotal /= len(temperatures)\r\n```\r\n\r\nThus doing the addition of 3 temperatures instead of just 2."}}