diff --git a/xbitinfo/xbitinfo.py b/xbitinfo/xbitinfo.py index 3340475f..381057e6 100644 --- a/xbitinfo/xbitinfo.py +++ b/xbitinfo/xbitinfo.py @@ -491,7 +491,7 @@ def get_cdf_without_artificial_information( # Normalize CDF values for elements up to 'infbits'. cdf_array[i] = cdf_array[i] / cdf_array[infbits] - cdf_array[infbits + 1, :] = 1 + cdf_array[(infbits + 1):] = 1 return cdf