From c8728e2684861ca6f34cd1d92287aaa864f0d66e Mon Sep 17 00:00:00 2001 From: kartikmandar Date: Wed, 21 Feb 2024 23:38:25 +0530 Subject: [PATCH 1/2] min_freq should be greater than 0 --- LombScargle/LombScargleCrossspectrum_tutorial.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/LombScargle/LombScargleCrossspectrum_tutorial.ipynb b/LombScargle/LombScargleCrossspectrum_tutorial.ipynb index 8d23e40..b11b6ee 100644 --- a/LombScargle/LombScargleCrossspectrum_tutorial.ipynb +++ b/LombScargle/LombScargleCrossspectrum_tutorial.ipynb @@ -143,10 +143,11 @@ "metadata": {}, "outputs": [], "source": [ + "import sys\n", "lcs = LombScargleCrossspectrum(\n", " lc1,\n", " lc2,\n", - " min_freq=0,\n", + " min_freq=sys.float_info.epsilon,\n", " max_freq=None,\n", " method=\"fast\",\n", " power_type=\"all\",\n", @@ -300,9 +301,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.8" + "version": "3.9.12" } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 } From e724998c5af8be3a1a2d11b9e304c17994b0ea73 Mon Sep 17 00:00:00 2001 From: kartikmandar Date: Wed, 21 Feb 2024 23:57:07 +0530 Subject: [PATCH 2/2] min_freq value should be greater than 0 --- LombScargle/LombScarglePowerspectrum_tutorial.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LombScargle/LombScarglePowerspectrum_tutorial.ipynb b/LombScargle/LombScarglePowerspectrum_tutorial.ipynb index b376dfa..d041c77 100644 --- a/LombScargle/LombScarglePowerspectrum_tutorial.ipynb +++ b/LombScargle/LombScarglePowerspectrum_tutorial.ipynb @@ -123,9 +123,10 @@ "metadata": {}, "outputs": [], "source": [ + "import sys\n", "lps = LombScarglePowerspectrum(\n", " lc,\n", - " min_freq=0,\n", + " min_freq=sys.float_info.epsilon,\n", " max_freq=None,\n", " method=\"fast\",\n", " power_type=\"all\",\n",