Skip to content

Commit

Permalink
Fixed the CrossCorrelation,LombScargle
Browse files Browse the repository at this point in the history
satshed the notebooks (as suggested ) and edited the specific cells that were causing issues
  • Loading branch information
AnonymousCodes911 committed Feb 16, 2024
1 parent e58c722 commit 28ec156
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions CrossCorrelation/cross_correlation_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@
},
"outputs": [],
"source": [
"from stingray import AutoCorrelation #importing AutoCorrelation\n",
"dt = 0.001 # seconds\n",
"exposure = 20. # seconds\n",
"freq = 1 # Hz\n",
Expand Down
13 changes: 12 additions & 1 deletion LombScargle/LombScargleCrossspectrum_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
"This tutorial shows how to make and manipulate a Lomb Scargle cross spectrum of two light curves using Stingray."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# we can see the new Valid seaborn Styles by running: \n",
"#plt.style.available "
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand All @@ -21,8 +31,9 @@
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib.font_manager as font_manager\n",
"plt.style.use('seaborn-talk')\n",
"plt.style.use('seaborn-v0_8-talk')# removed the earlier seaborn-talk dependency\"\n",
"%matplotlib inline\n",
"from matplotlib.font_manager import FontProperties #Not importing this was causing Import error\n",
"font_prop = font_manager.FontProperties(size=16)"
]
},
Expand Down
2 changes: 1 addition & 1 deletion LombScargle/LombScarglePowerspectrum_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"from scipy.interpolate import make_interp_spline\n",
"import matplotlib.font_manager as font_manager\n",
"%matplotlib inline\n",
"plt.style.use('seaborn-talk')\n",
"plt.style.use('seaborn-v0_8-talk')\n",
"font_prop = font_manager.FontProperties(size=16)"
]
},
Expand Down

0 comments on commit 28ec156

Please sign in to comment.