Skip to content

crop_tgrid fixes

Fraser William Goldsworth requested to merge m301014/pyicon:master into master

crop_tgrid wasn't working with dask arrays. I've added some compute statements as there are places where we use boolean indexing - this can not be done with lazy arrays as the interpreter needs to know how big the resulting array will be. I've also added some astypes which are needed as the ireg_x returned by np.unique aren't necessarily integers.

Merge request reports