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/6763#issuecomment-1180548098,https://api.github.com/repos/pydata/xarray/issues/6763,1180548098,IC_kwDOAMm_X85GXbwC,2448579,2022-07-11T15:23:03Z,2022-07-11T15:23:03Z,MEMBER,It has to look *exactly* like the output dataset prior to computing (just constructed with dummy values),"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1298145215 https://github.com/pydata/xarray/issues/6763#issuecomment-1180517639,https://api.github.com/repos/pydata/xarray/issues/6763,1180517639,IC_kwDOAMm_X85GXUUH,35968931,2022-07-11T14:57:23Z,2022-07-11T14:57:23Z,MEMBER,"Just tagging on here to say that I had a go at using `map_blocks` yesterday and found the requirements for the `template` argument a bit unclear. The documentation should say a) what type of data is expected (in-memory vs lazy dask) b) what coordinates and indexes are required c) names d) chunking structure as above I'm happy to contribute to this but probably only after SciPy :sweat_smile: ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1298145215 https://github.com/pydata/xarray/issues/6763#issuecomment-1178269100,https://api.github.com/repos/pydata/xarray/issues/6763,1178269100,IC_kwDOAMm_X85GOvWs,2448579,2022-07-07T21:58:25Z,2022-07-07T21:58:25Z,MEMBER,"`template.chunks` is None. It needs to have the expected output chunking. A PR raising a nice error message here when `if not template.chunksizes:` would be very welcome We can also delete the `if` clause here:https://github.com/pydata/xarray/blob/ce40b9391a996b8218e1c7b1e83905b8dd4bc1fd/xarray/core/parallel.py#L383-L388 and use the new `chunksizes` property: `output_chunks = template.chunksizes`","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1298145215