Skip to content

Commit dd526d4

Browse files
committed
fix: #140
1 parent bdfac7d commit dd526d4

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

docs/ipynb/casestudies/transit.ipynb

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
"source": [
195195
"from prose import Fluxes\n",
196196
"\n",
197-
"fluxes: Fluxes = photometry[-1].fluxes\n"
197+
"fluxes: Fluxes = photometry[-1].fluxes"
198198
]
199199
},
200200
{
@@ -255,17 +255,17 @@
255255
"fluxes.target = 6\n",
256256
"\n",
257257
"# a bit of cleaning\n",
258-
"nan_stars = np.any(np.isnan(fluxes.fluxes), axis=(0, 2)) # stars with nan fluxes\n",
259-
"fluxes = fluxes.mask_stars(~nan_stars) # mask nans stars\n",
260-
"fluxes = fluxes.sigma_clipping_data(bkg=3, fwhm=3) # sigma clipping\n",
258+
"nan_stars = np.any(np.isnan(fluxes.fluxes), axis=(0, 2)) # stars with nan fluxes\n",
259+
"fluxes = fluxes.mask_stars(~nan_stars) # mask nans stars\n",
260+
"fluxes = fluxes.sigma_clipping_data(bkg=3, fwhm=3) # sigma clipping\n",
261261
"\n",
262262
"# differential photometry\n",
263263
"diff = fluxes.autodiff()\n",
264264
"\n",
265265
"# plotting\n",
266266
"ax = plt.subplot(xlabel=\"time (JD)\", ylabel=\"diff. flux\", ylim=(0.94, 1.06))\n",
267267
"diff.plot()\n",
268-
"diff.bin(5 / 60 / 24, estimate_error=True).errorbar()\n"
268+
"diff.bin(5 / 60 / 24, estimate_error=True).errorbar()"
269269
]
270270
},
271271
{
@@ -542,7 +542,7 @@
542542
" y = diff.df[name].copy()\n",
543543
" y = (y - np.mean(y)) / np.std(y) + 8 * i\n",
544544
" plt.text(diff.time.max(), np.mean(y) + 4, name, ha=\"right\")\n",
545-
" plt.plot(diff.time, y, \".\", c=\"0.8\" if name != \"flux\" else \"k\")\n"
545+
" plt.plot(diff.time, y, \".\", c=\"0.8\" if name != \"flux\" else \"k\")"
546546
]
547547
},
548548
{
@@ -604,7 +604,7 @@
604604
" ],\n",
605605
")\n",
606606
"\n",
607-
"faster_photometry.run(sciences)\n"
607+
"faster_photometry.run(sciences)"
608608
]
609609
},
610610
{
@@ -616,10 +616,18 @@
616616
]
617617
},
618618
{
619-
"attachments": {},
620619
"cell_type": "markdown",
621620
"metadata": {},
622-
"source": []
621+
"source": [
622+
"\n",
623+
"```{note}\n",
624+
"[SequenceParallel](prose.core.sequence.SequenceParallel) class is a subclass of [Sequence](prose.core.sequence.Sequence). For example, the `fluxes` after this sequence is ran can be accessed with\n",
625+
"\n",
626+
"```python\n",
627+
"fluxes = faster_photometry.data[-1].fluxes\n",
628+
"```\n",
629+
"```"
630+
]
623631
}
624632
],
625633
"metadata": {

0 commit comments

Comments
 (0)