Skip to content

Commit

Permalink
pre-consdb
Browse files Browse the repository at this point in the history
  • Loading branch information
pothiers committed Nov 25, 2024
1 parent b5332d0 commit 5ba9eab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
20 changes: 15 additions & 5 deletions notebooks_tsqr/NightLog.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"- <font style=\"background-color:#ffff99\">Embedded comments and questions to reader (Yellow background)</font>\n",
"- This page tries to work around existing problems with APIs used for source data. (There is a ticket to fix the APIs)\n",
"- <font style=\"background-color:red; color:#90EE90\">Errors from APIs are displayed in this page (Red background).</font>\n"
]
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -258,7 +260,8 @@
"id": "16",
"metadata": {},
"source": [
"## DDV <font style=\"background-color:green; color:white; font-size:20px\">BETA</font>"
"## Links to related resources <font style=\"background-color:green; color:white; font-size:20px\">BETA</font>\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."
]
},
{
Expand All @@ -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",
")"
]
},
{
Expand Down Expand Up @@ -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)"
]
},
{
Expand Down
3 changes: 1 addition & 2 deletions python/lsst/ts/logging_and_reporting/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 5ba9eab

Please sign in to comment.