Skip to content

Commit

Permalink
Merge pull request #49 from LBL-EESA/conditional_issue_48
Browse files Browse the repository at this point in the history
Implement the fix proposed by @jackrolph. Closes #48 - thank you!
  • Loading branch information
taobrienlbl authored Sep 27, 2024
2 parents be60b14 + ea9412f commit 3387299
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.1.1
current_version = 2.1.2
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.1
2.1.2
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 3387299

Please sign in to comment.