html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/4631#issuecomment-736786380,https://api.github.com/repos/pydata/xarray/issues/4631,736786380,MDEyOklzc3VlQ29tbWVudDczNjc4NjM4MA==,1197350,2020-12-01T20:03:54Z,2020-12-01T20:03:54Z,MEMBER,Ok then I am 👍 on @dcherian's solution.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,753965875 https://github.com/pydata/xarray/issues/4631#issuecomment-736605843,https://api.github.com/repos/pydata/xarray/issues/4631,736605843,MDEyOklzc3VlQ29tbWVudDczNjYwNTg0Mw==,10194086,2020-12-01T14:57:19Z,2020-12-01T14:57:19Z,MEMBER,"I think it just did `np.array([1, 2, 3.]) * [5]` numpy coverts the `[5]` to an array with one element, which is why it worked: ```python xr.coding.variables._scale_offset_decoding(np.array([1, 2, 3.]), [5], None, np.float) ``` https://github.com/pydata/xarray/blob/49d03d246ce657e0cd3be0582334a1a023c4b374/xarray/coding/variables.py#L217","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,753965875 https://github.com/pydata/xarray/issues/4631#issuecomment-736526797,https://api.github.com/repos/pydata/xarray/issues/4631,736526797,MDEyOklzc3VlQ29tbWVudDczNjUyNjc5Nw==,1197350,2020-12-01T12:39:53Z,2020-12-01T12:39:53Z,MEMBER,But what did we do before?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,753965875 https://github.com/pydata/xarray/issues/4631#issuecomment-736196012,https://api.github.com/repos/pydata/xarray/issues/4631,736196012,MDEyOklzc3VlQ29tbWVudDczNjE5NjAxMg==,2448579,2020-12-01T03:36:16Z,2020-12-01T03:36:16Z,MEMBER,I guess we need `np.asarray(scale_factor).item()`,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,753965875