Skip to content

Commit 05e3300

Browse files
committed
Minor updates to NB 305_1
1 parent 7254690 commit 05e3300

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

DP1/300_Science_Demos/305_Galactic_variables_and_transients/305_1_Variable_star_light_curves.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"Data Release: <a href=\"https://dp1.lsst.io/\">Data Preview 1</a> <br>\n",
2323
"Container Size: large <br>\n",
2424
"LSST Science Pipelines version: r29.2.0 <br>\n",
25-
"Last verified to run: 2025-09-02 <br>\n",
25+
"Last verified to run: 2025-09-30 <br>\n",
2626
"Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>"
2727
]
2828
},
@@ -426,7 +426,7 @@
426426
"\n",
427427
"Use the known period of the variable star to \"phase-fold\" the light curve.\n",
428428
"\n",
429-
"Define the period in days for the SX Phe star from Carlin+2025."
429+
"Define the period in days for the SX Phe star from [Carlin et al. 2025](https://ui.adsabs.harvard.edu/abs/2025RNAAS...9..161C/abstract)."
430430
]
431431
},
432432
{
@@ -513,9 +513,7 @@
513513
"source": [
514514
"### 3.3. Plot magnitude vs. phase\n",
515515
"\n",
516-
"Convert the direct image forced fluxes to magnitudes, then plot a light curve.\n",
517-
"\n",
518-
"> **Warning:** the following code cell produces a pink RuntimeWarning about invalid values encountered in log10, which represents the danger of converting fluxes to magnitudes: direct-image forced fluxes can be negative."
516+
"Filter out catalog entries with spurious negative flux measurements. Then convert the direct image forced fluxes to magnitudes, and plot a light curve."
519517
]
520518
},
521519
{
@@ -525,6 +523,8 @@
525523
"metadata": {},
526524
"outputs": [],
527525
"source": [
526+
"forced_source = forced_source[forced_source['psfFlux'] > 0]\n",
527+
"\n",
528528
"mag = forced_source['psfFlux'].to(u.ABmag).value"
529529
]
530530
},

0 commit comments

Comments
 (0)