From aa491b584270dcd93d8c4a84f7fd9c1d2227305c Mon Sep 17 00:00:00 2001 From: Rodrigo Luger Date: Mon, 8 Feb 2021 16:36:46 -0500 Subject: [PATCH] tweaks in examples --- docs/notebooks/Ensemble.ipynb | 7 ++++--- docs/notebooks/TimeVariability.ipynb | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/notebooks/Ensemble.ipynb b/docs/notebooks/Ensemble.ipynb index 3801341..1fd4e23 100644 --- a/docs/notebooks/Ensemble.ipynb +++ b/docs/notebooks/Ensemble.ipynb @@ -203,7 +203,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Let's generate a synthetic ensemble of light curves of stars with \"similar\" spot properties. Let's define some true values for the spot properties of the ensemble:" + "In this section we will generate a synthetic ensemble of light curves of stars with \"similar\" spot properties. Let's define some true values for the spot properties of the ensemble:" ] }, { @@ -249,7 +249,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Let's generate 500 light curves from stars at random inclinations with spots drawn from the distributions above.\n", + "Now let's generate 500 light curves from stars at random inclinations with spots drawn from the distributions above.\n", "We'll do this by adding discrete circular spots to each star via the `starry_process.calibrate.generate`\n", "function.\n", "Note that in order to mimic real observations, we'll normalize each light curve to its mean value and subtract unity to get the \"relative\" flux.\n", @@ -458,7 +458,8 @@ "outputs": [], "source": [ "samples = get_samples(varnames, model=model)\n", - "corner(samples, labels=varnames, truths=[truths[name] for name in varnames]);" + "corner(samples, labels=varnames, truths=[truths[name] for name in varnames])\n", + "plt.show()" ] }, { diff --git a/docs/notebooks/TimeVariability.ipynb b/docs/notebooks/TimeVariability.ipynb index d1141c0..86eacf6 100644 --- a/docs/notebooks/TimeVariability.ipynb +++ b/docs/notebooks/TimeVariability.ipynb @@ -11,7 +11,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "In this tutorial, we will cover how to instatiate a time-variable `StarryProcess`, useful for modeling stars with spots that evolve over time. We will show how to sample from the process and use it to do basic inference." + "In this tutorial, we will cover how to instantiate a time-variable `StarryProcess`, useful for modeling stars with spots that evolve over time. We will show how to sample from the process and use it to do basic inference." ] }, {