From b8ab46e9c89df356aa89dd42f5cf1af939487b9f Mon Sep 17 00:00:00 2001 From: "Travis A. O'Brien" Date: Sat, 28 Sep 2024 10:25:21 -0400 Subject: [PATCH] Fix conditional ordering in README and readme_test.ipynb --- README.md | 4 +++- examples/readme_test.ipynb | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 833324b..cfef918 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,9 @@ conditional #*************************** # Calculate the conditional #*************************** -cPDF = fastkde.conditional(y, x, var_names = ['y', 'x']) +# note that conditiong variables ('x' in this case) are listed first +# in the var_names argument +cPDF = fastkde.conditional(y, x, var_names = ['x', 'y']) ``` The following plot shows the results: diff --git a/examples/readme_test.ipynb b/examples/readme_test.ipynb index 5309a3c..5f88921 100644 --- a/examples/readme_test.ipynb +++ b/examples/readme_test.ipynb @@ -215,7 +215,9 @@ "# ***************************\n", "# Calculate the conditional\n", "# ***************************\n", - "cPDF = fastkde.conditional(y, x, var_names=[\"y\", \"x\"])" + "# note that conditiong variables ('x' in this case) are listed first\n", + "# in the var_names argument\n", + "cPDF = fastkde.conditional(y, x, var_names=[\"x\", \"y\"])" ] }, {