nismod/smif

Built in adaptors call ndim on DataArray

Closed this issue · 1 comments

This causes the following error:

AttributeError: 'DataArray' object has no attribute 'ndim'

Reported by @LahiruJayasuriya

The problem is caused by Adaptor.simulate passing a DataArray to Adaptor.convert where convert is expecting an ndarray.

Need to fix the tests, which currently pass in numpy ndarray rather than smif DataArray objects.

Closed by #318