ndcube
ndcube copied to clipboard
Skip plotting line data if it's all NaNs
trafficstars
Closes DKISTDC/dkist#477
Over in the DKIST python tools I discovered that trying to line plot a slice of a dataset took many times longer if there was no actual data there. This skips the attempt to actually plot a line full of NaNs which should solve that and cause no other problems anywhere, probably.
~~This will break if the data aren't a dask array, so that's not ideal.~~
Hi @SolarDrew. What's the status of this PR? Would you still like to merge it?
Sorry, I forgot this was blocked on me. Yes, I'd still like it merged, I'll come back and have a look at it soon.