Open ayoubft opened 1 year ago
ds.is_null().any()
is probably the way to go. The function is embarrassingly parallel. This shouldn't have much influence on the performance. I probably would call this when we need to load the data anyway.
If this issue is still open please assign it to me, I would like to work on it.
Hi @ambiguousphoton, Thank you for your interest in this project. I just assigned you to this issue. I'm looking forward to review your contribution and am happy to help. Cheers!
@observingClouds I would love to implement this. Can you please guide me about where is this check needed in the codebase?
@Shaheer-Ahmd sry for the late response. If you are still interested, the implementation could be added before https://github.com/observingClouds/xbitinfo/blob/7341975a65f97267ca4c1c124deb28f6694b380a/xbitinfo/xbitinfo.py#L180. Please note though that we also want to have tests implemented for this feature.
unassigned @ambiguousphoton due to inactivity
This issue will be fixed by https://github.com/observingClouds/xbitinfo/pull/260
As discussed with @observingClouds and @milankl, and raised in this
BitInformation.jl
issue: the elements in an array should be checked whether they are finite and raise a warning if they are not. As having manyNaN
s in the dataset may yield unexpected results.A check could be using
is_null()
fromxarray
like:Or perhaps by iterating through a dataset and issuing a warning upon encountering the first
NaN
value.