edoddridge / aronnax

An idealised isopycnal model that can be run either with n+1/2 layers, or with n layers and variable bathymetry.
http://aronnax.readthedocs.io/en/latest/
MIT License
23 stars 5 forks source link

`open_mfdataarray` returns copies of the last output #222

Closed edoddridge closed 5 years ago

edoddridge commented 5 years ago

This is apparently related to the way dask.delayed handles lists of inputs: https://github.com/dask/dask/issues/2380. By specifying a name in the call I was causing it to load the final array over and over. Removing the name keyword here

https://github.com/edoddridge/aronnax/blob/f7fdf64fb4bc92d196424856f211aae104113e23/aronnax/core.py#L157-L158

fixes this bug.