From 26b88034c75adf74e9514d4009d4fb0d7e2cb5aa Mon Sep 17 00:00:00 2001 From: MelissaGraham Date: Wed, 2 Dec 2026 19:30:51 +0000 Subject: [PATCH 1/2] update ndiasources description --- .../202_Catalogs/202_01_DiaObject_table.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Prompt/200_Data_products/202_Catalogs/202_01_DiaObject_table.ipynb b/Prompt/200_Data_products/202_Catalogs/202_01_DiaObject_table.ipynb index 3ecadc5a..7e0bd4a8 100644 --- a/Prompt/200_Data_products/202_Catalogs/202_01_DiaObject_table.ipynb +++ b/Prompt/200_Data_products/202_Catalogs/202_01_DiaObject_table.ipynb @@ -324,14 +324,14 @@ "source": [ "#### 2.2.3. Detections\n", "\n", - "Total number of detections across all filters (i.e., number of associated `diaSource`s). \n", - "\n", - "* `nDiaSources`\n", - "\n", "The MJD of the first and last detections - note that these columns are masked, and are not populated with values, for `diaObjects` that have not been detected since [alert production recommenced at the end of October 2026](https://www.rubin.community/t/rubin-alerts-will-begin-streaming-again-soon/12885) after the winter storm shutdown period.\n", "\n", "* `firstDiaSourceMjdTai`\n", - "* `lastDiaSourceMjdTai`" + "* `lastDiaSourceMjdTai`\n", + "\n", + "This represents the number of diaSources in the alert light curve. It is usually but not always the same as the number of associated rows in the `ppdb.DiaSource` table. It is not always the same due to some known issues, mainly with diaSource duplication, which are being worked on.\n", + "\n", + "* `nDiaSources`\n" ] }, { From 13e96377a081f4d0d6ec64f4787a2d327dcba2c7 Mon Sep 17 00:00:00 2001 From: MelissaGraham Date: Wed, 2 Dec 2026 19:36:18 +0000 Subject: [PATCH 2/2] update description of ndiasources --- .../304_1_Transient_light_curves.ipynb | 2 +- .../304_2_Cross_match_queries.ipynb | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Prompt/300_Science_demos/304_Extragalactic_transients/304_1_Transient_light_curves.ipynb b/Prompt/300_Science_demos/304_Extragalactic_transients/304_1_Transient_light_curves.ipynb index 7da890f4..ee776422 100644 --- a/Prompt/300_Science_demos/304_Extragalactic_transients/304_1_Transient_light_curves.ipynb +++ b/Prompt/300_Science_demos/304_Extragalactic_transients/304_1_Transient_light_curves.ipynb @@ -214,7 +214,7 @@ "id": "d18566b2-1977-4b80-9296-785f1c67c5af", "metadata": {}, "source": [ - "Query the `DiaObject` table and retrieve the `diaObjectId`, the number of detections (`nDiaSources`), and the offset distance between all matches and the search coordinates. Note that this is not a nearest-neighbor search and that multiple matches within the search radius may be returned. Retrieve the results as an Astropy table." + "Query the `DiaObject` table and retrieve the `diaObjectId`, the number of diaSources in the alert light curve (`nDiaSources`), and the offset distance between all matches and the search coordinates. Note that this is not a nearest-neighbor search and that multiple matches within the search radius may be returned. Retrieve the results as an Astropy table." ] }, { diff --git a/Prompt/300_Science_demos/304_Extragalactic_transients/304_2_Cross_match_queries.ipynb b/Prompt/300_Science_demos/304_Extragalactic_transients/304_2_Cross_match_queries.ipynb index 8b9c9f79..c242cf8c 100644 --- a/Prompt/300_Science_demos/304_Extragalactic_transients/304_2_Cross_match_queries.ipynb +++ b/Prompt/300_Science_demos/304_Extragalactic_transients/304_2_Cross_match_queries.ipynb @@ -321,7 +321,7 @@ "id": "3238130b-0c9f-49c5-9e42-1cf1884659d8", "metadata": {}, "source": [ - "For any SN that had more than one cross-match result to the `DiaObject` table, the following cell would print its name and the number of matches, and also the identifier, number of diaSources, and the sky distances for each match.\n", + "For any SN that had more than one cross-match result to the `DiaObject` table, the following cell would print its name and the number of matches, and also the identifier, number of diaSources in its alert light curve, and the sky distances for each match.\n", "When a cross-match yields duplicates, the real astrophysical transients are usually the closest diaObject or the one with lots of detections (as spurious artifacts are often only detected once).\n", "This is not needed for this sample, as there were no duplicates." ] @@ -363,7 +363,8 @@ "source": [ "### 3.2. Histogram of nDiaSources\n", "\n", - "Plot a histogram of the number of detections (`nDiaSources`) per object." + "Plot a histogram of the number of diaSources in the alert light curve (`nDiaSources`) per object.\n", + "Note that this number is usually, but not always, the same as the number of associated rows in the `ppdb.DiaSource` table. It is not always the same due to some known issues, mainly with diaSource duplication, which are being worked on." ] }, { @@ -375,7 +376,7 @@ "source": [ "fig = plt.figure(figsize=(10, 4))\n", "plt.hist(diao_table['nDiaSources'], bins=30)\n", - "plt.xlabel('Number of detections per object', fontsize=12)\n", + "plt.xlabel('nDiaSources', fontsize=12)\n", "plt.ylabel('Number of objects', fontsize=12)\n", "plt.title('Distribution of the number of detections in any filter')\n", "plt.show()"