diff --git a/mult_ephem_RR-Lyr.ipynb b/mult_ephem_RR-Lyr.ipynb index 8c0f5d6..7e2c6a9 100644 --- a/mult_ephem_RR-Lyr.ipynb +++ b/mult_ephem_RR-Lyr.ipynb @@ -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:" ] @@ -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()" ] @@ -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'" ] }, { @@ -184,7 +183,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.3" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/mult_ephem_kic_2835289.ipynb b/mult_ephem_kic_2835289.ipynb index dbb5cac..26328c1 100644 --- a/mult_ephem_kic_2835289.ipynb +++ b/mult_ephem_kic_2835289.ipynb @@ -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" ] }, { @@ -264,7 +264,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.3" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/short_cadence_phase_curve_HAT-P-7.ipynb b/short_cadence_phase_curve_HAT-P-7.ipynb index a103e98..71ed9d4 100644 --- a/short_cadence_phase_curve_HAT-P-7.ipynb +++ b/short_cadence_phase_curve_HAT-P-7.ipynb @@ -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`:" ] @@ -156,17 +156,15 @@ }, "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", "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", "plot_options.marker_size = 50\n", "plot_options.marker_color = 'r'" ] @@ -174,7 +172,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5e851e0a-c4e0-48a3-9701-b6c1928e7fc5", + "id": "496237ce-a773-4f42-b2c3-ae81d329c3fb", "metadata": {}, "outputs": [], "source": [] @@ -196,7 +194,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.3" + "version": "3.11.9" } }, "nbformat": 4,