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

update notebooks to lcviz 0.4.2 #5

Merged
merged 1 commit into from
Aug 23, 2024
Merged
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
13 changes: 6 additions & 7 deletions mult_ephem_RR-Lyr.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"\n",
"[RR Lyrae](https://en.wikipedia.org/wiki/RR_Lyrae) is the prototype of a class of variable stars with radial pulsations. The pulsation period is related to the stellar luminosity, and a second, lower frequency variation can be seen on longer timescales, known as the [Blazkho effect](https://en.wikipedia.org/wiki/Blazhko_effect). \n",
"\n",
"* **Last Updated**: March 7, 2024\n",
"* **lcviz version**: 0.2.0\n",
"* **Last Updated**: August 21, 2024\n",
"* **lcviz version**: 0.4.2\n",
"\n",
"RR Lyrae itself was in the Kepler field, so let's load one Kepler Quarter of long-cadence observations, and inspect the periods:"
]
Expand Down Expand Up @@ -69,7 +69,7 @@
"plot_options = lcviz.plugins['Plot Options']\n",
"freq_analysis = lcviz.plugins['Frequency Analysis']\n",
"freq_analysis.auto_range = False\n",
"freq_analysis.xunit.selected = 'period'\n",
"freq_analysis.xunit = 'period'\n",
"\n",
"lcviz.show()"
]
Expand Down Expand Up @@ -151,12 +151,11 @@
"metadata": {},
"outputs": [],
"source": [
"for viewer in lcviz.app.get_viewer_reference_names():\n",
"for viewer in plot_options.viewer.choices:\n",
" plot_options.viewer = viewer\n",
" plot_options.layer = lcviz.app.data_collection[0].label\n",
" plot_options.marker_color_mode = 'Linear'\n",
" plot_options.marker_colormap = 'Viridis'\n",
" plot_options._obj.marker_color_col_value = 'phase:blazkho'"
" plot_options.marker_color_col = 'phase:blazkho'"
]
},
{
Expand Down Expand Up @@ -184,7 +183,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions mult_ephem_kic_2835289.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"\n",
"This notebook loads the Kepler light curve for a eclipsing triple system (KIC 2835289) containing a binary with ellipsoidal variations and a third star on an eccentric orbit. We use lcviz to flatten the light curve, and phase-fold on both orbital periods.\n",
"\n",
"* **Last Updated**: March 7, 2024\n",
"* **lcviz version**: 0.2.0"
"* **Last Updated**: August 21, 2024\n",
"* **lcviz version**: 0.4.2"
]
},
{
Expand Down Expand Up @@ -264,7 +264,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
16 changes: 7 additions & 9 deletions short_cadence_phase_curve_HAT-P-7.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"\n",
"HAT-P-7 b ([Pál et al. 2008](https://ui.adsabs.harvard.edu/abs/2008ApJ...680.1450P/abstract)) is a hot Jupiter orbiting a bright F6V host in the Kepler field. Let's take a look at short cadence (one-minute) Kepler observations from the first three Kepler quarters to see the secondary eclipse of the planet, when the planet's flux disappears as the planet is eclipsed by the host star.\n",
"\n",
"* **Last Updated**: March 7, 2024\n",
"* **lcviz version**: 0.2.0\n",
"* **Last Updated**: August 21, 2024\n",
"* **lcviz version**: 0.4.2\n",
"\n",
"First we download the observations with `lightkurve`:"
]
Expand Down Expand Up @@ -156,25 +156,23 @@
},
"outputs": [],
"source": [
"viewer = lcviz.app.get_viewer('flux-vs-phase:default')\n",
"viewer.state.y_min = 0.99993\n",
"viewer.state.y_max = 1.00005\n",
"lcviz.viewers['flux-vs-phase:default'].set_limits(y_min=0.99993, y_max=1.00005)\n",
"\n",
"plot_options = lcviz.plugins['Plot Options']\n",
"plot_options.viewer = 'flux-vs-phase:default'\n",
"plot_options.layer = 'HAT-P-7'\n",
"plot_options.layer = 'HAT-P-7 Q3'\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"plot_options.layer = 'HAT-P-7 Q3'\n",
"plot_options.layer = 'HAT-P-7'\n",

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm are you on main or 0.4.2? I am pretty sure I ran this through and the quarter was appended to the input data-label. (0.4.x does not have spacetelescope/lcviz#120)

"plot_options.marker_opacity = 0.1\n",
"plot_options.marker_size = 1\n",
"\n",
"plot_options.layer = 'binned HAT-P-7:default'\n",
"plot_options.layer = 'binned HAT-P-7 Q3:default'\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"plot_options.layer = 'binned HAT-P-7 Q3:default'\n",
"plot_options.layer = 'binned HAT-P-7:default'\n",

"plot_options.marker_size = 50\n",
"plot_options.marker_color = 'r'"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5e851e0a-c4e0-48a3-9701-b6c1928e7fc5",
"id": "496237ce-a773-4f42-b2c3-ae81d329c3fb",
"metadata": {},
"outputs": [],
"source": []
Expand All @@ -196,7 +194,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down