From 5ba9eabadfa4b5c0a289c37b1bc91004ef4ed696 Mon Sep 17 00:00:00 2001 From: Steve Pothier Date: Mon, 25 Nov 2024 08:41:01 -0700 Subject: [PATCH] pre-consdb --- notebooks_tsqr/NightLog.ipynb | 20 ++++++++++++++----- .../lsst/ts/logging_and_reporting/reports.py | 3 +-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/notebooks_tsqr/NightLog.ipynb b/notebooks_tsqr/NightLog.ipynb index 49972ff..ce0a2c1 100644 --- a/notebooks_tsqr/NightLog.ipynb +++ b/notebooks_tsqr/NightLog.ipynb @@ -6,15 +6,16 @@ "metadata": {}, "source": [ "# About this Page\n", - "***What are we missing?*** See the slack *#ts-logging* channel for discussion about this page. Use it to report problems, ask questions, and make requests for changes. \n", + "***What are we missing?*** See the slack *#ts-logging* channel for discussion about this page. Use it to report problems, ask questions, and make requests for changes. \n", "\n", "## What is new in this application?(newest change at top of list)\n", + "- Add section for \"Links to related resources\". Let us know is other links should be added.\n", "- Exposure quality flag added to Exposure Detail (accessed by following row links in Data Log)\n", + "- \n", "- Bullet proof parameters\n", "- Do not show Time Loss info unless it is greater than zero (Narrative log)\n", "- Do not show software or hardware components (they are rarely used anyhow)\n", "- Embedded comments and questions to reader (Yellow background)\n", - "- This page tries to work around existing problems with APIs used for source data. (There is a ticket to fix the APIs)\n", "- Errors from APIs are displayed in this page (Red background).\n" ] }, @@ -165,6 +166,7 @@ " - Simonyi\n", "* [Almanac](#Almanac-BETA)\n", "* [Summary plots of whole night](#Summary-plots-of-whole-night-DRAFT)\n", + "* [Links to related resources](#Links-to-related-resources-BETA)\n", "* [Time Accounting](#Time-Accounting-DRAFT)\n", "* [Jira Tickets](#Jira-Tickets-BETA)\n", " - AuxTel\n", @@ -258,7 +260,8 @@ "id": "16", "metadata": {}, "source": [ - "## DDV BETA" + "## Links to related resources BETA\n", + "These tools were created outside of the TSSW Logging and Reporting group. For more information about any of these, please see the respective tool owner." ] }, { @@ -273,7 +276,12 @@ " if \"summit\" in server\n", " else f\"{server}/rubintv/ddv/index.html\"\n", ")\n", - "md(f\"Access DDV part of RubinTV: {DDV}\")" + "md(\n", + " f\"\"\"\n", + "- Access DDV part of RubinTV: {DDV}\n", + "- [Chronograph]({server}/chronograf)\n", + "\"\"\"\n", + ")" ] }, { @@ -333,8 +341,10 @@ "outputs": [], "source": [ "if allsrc.urls:\n", + " text = \"\"\n", " for url in allsrc.urls:\n", - " md(f\"- {mdpathlink(url)}\")" + " text += f\"- {mdpathlink(url)}\\n\"\n", + " md(text)" ] }, { diff --git a/python/lsst/ts/logging_and_reporting/reports.py b/python/lsst/ts/logging_and_reporting/reports.py index 40f896b..cc8ff47 100644 --- a/python/lsst/ts/logging_and_reporting/reports.py +++ b/python/lsst/ts/logging_and_reporting/reports.py @@ -141,12 +141,11 @@ def overview(self): status = adapter.get_status() count = status["number_of_records"] error = status["error"] - more = "(There may be more.)" if count >= adapter.limit else "" result = error if error else f"Got {count} records. " print(md(f"### Overview for Service: `{adapter.service}` [{count}]")) print(md(f'- Endpoint: {status["endpoint_url"]}')) - print(f"- {result} {more}") + print(f"- {result}") def time_log_as_markdown(self, zero_message=True): """Emit markdown for a date-time log."""