pytroll / pyorbital

Orbital and astronomy computations in python
http://pyorbital.readthedocs.org/
GNU General Public License v3.0
226 stars 77 forks source link

Add conditional check to use `da.where` when inputs are dask arrays #25

Closed djhoese closed 6 years ago

djhoese commented 6 years ago

This adds a small if statement to see if the input to get_observer_look is a dask array and use da.where instead of doing in-place conditional writes which are not-dask friendly (unknown shape).

Travis tests seem to fail right now outside of my changes. @adybbroe @mraspaud ideas? Maybe a numpy version change?

stickler-ci commented 6 years ago

I couldn't find a .stickler.yml file in this repository. I can make one for you, or you can create one by following the documentation.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.2%) to 74.686% when pulling 6612d5fbbf52f2e8a06df08ffd362af3f568bf81 on feature-dask-observer-look into 9d3abffc8a82b4d030e43f5723baa2120b65b75a on develop.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.2%) to 74.686% when pulling 6612d5fbbf52f2e8a06df08ffd362af3f568bf81 on feature-dask-observer-look into 9d3abffc8a82b4d030e43f5723baa2120b65b75a on develop.