diff --git a/xbitinfo/xbitinfo.py b/xbitinfo/xbitinfo.py index 304fbce1..f6f56c58 100644 --- a/xbitinfo/xbitinfo.py +++ b/xbitinfo/xbitinfo.py @@ -440,6 +440,7 @@ def get_keepbits(info_per_bit, inflevel=0.99, information_filter = False): bit_vars = [v for v in info_per_bit.data_vars if bitdim in info_per_bit[v].dims] if bit_vars != []: if(information_filter == True): + break else: cdf = _cdf_from_info_per_bit(info_per_bit[bit_vars], bitdim)