Skip to content

Commit

Permalink
Implement the fix proposed by @jackrolph
Browse files Browse the repository at this point in the history
  • Loading branch information
taobrienlbl committed Sep 27, 2024
1 parent be60b14 commit 3968bf6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/fastkde/fastKDE.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3968bf6

Please sign in to comment.