diff --git a/.bumpversion.cfg b/.bumpversion.cfg index da5ea0c..6f8cfbe 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.1.1 +current_version = 2.1.2 commit = True tag = True diff --git a/REVISION b/REVISION index 3e3c2f1..eca07e4 100644 --- a/REVISION +++ b/REVISION @@ -1 +1 @@ -2.1.1 +2.1.2 diff --git a/src/fastkde/fastKDE.py b/src/fastkde/fastKDE.py index 32d0125..b44d802 100644 --- a/src/fastkde/fastKDE.py +++ b/src/fastkde/fastKDE.py @@ -1433,15 +1433,10 @@ def underlyingFunction(x,x0=305,y0=200,yrange=4): ) ) - # reorder the variable names so that the conditioning variables are first - var_names = ( - var_names[len(conditioningVars) :] + var_names[: len(conditioningVars)] - ) - # extract the conditioning variable names - conditioning_var_names = var_names[len(conditioningVars) :] + conditioning_var_names = var_names[:len(conditioningVars)] # extract the input variable names - input_var_names = var_names[: len(conditioningVars)] + input_var_names = var_names[len(conditioningVars):] # Estimate the full joint PDF _pdf = fastKDE(npy.array(fullVarList), positive_shift=positive_shift, **kwargs)