Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Notebooks DeadTime, Modeling,Window Functions #79

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
"dt = 0.001 # seconds\n",
"exposure = 20. # seconds\n",
"freq = 1 # Hz\n",
Expand Down
4 changes: 2 additions & 2 deletions Deadtime/Check dead time model in Stingray.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"outputs": [],
"source": [
"def simulate_events(rate, length, deadtime=2.5e-3, **filter_kwargs):\n",
" events = np.random.uniform(0, length, np.int(rate * length))\n",
" events = np.random.uniform(0, length, int(rate * length))\n",
" events = np.sort(events)\n",
" events_dt = filter_for_deadtime(events, deadtime, **filter_kwargs)\n",
" return events, events_dt"
Expand Down Expand Up @@ -943,7 +943,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.11.2"
}
},
"nbformat": 4,
Expand Down
3 changes: 2 additions & 1 deletion LombScargle/LombScargleCrossspectrum_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,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')\n",
"%matplotlib inline\n",
"from matplotlib.font_manager import FontProperties\n",
"font_prop = font_manager.FontProperties(size=16)"
]
},
Expand Down
3 changes: 2 additions & 1 deletion LombScargle/LombScarglePowerspectrum_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"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",
"\n",
"font_prop = font_manager.FontProperties(size=16)"
]
},
Expand Down
34 changes: 17 additions & 17 deletions Window Functions/window_functions.ipynb

Large diffs are not rendered by default.