Skip to content

Commit

Permalink
narrative attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
pothiers committed Oct 23, 2024
1 parent 5035d7e commit 50af48e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions notebooks_tsqr/NightLog.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"source": [
"# Initialize\n",
"This section is a developer aid; TODO remove later!\n",
"*Align with [storyboard Version 15](https://rubinobs.atlassian.net/wiki/pages/viewpage.action?pageId=132612364&pageVersion=15)*"
"*Align with [storyboard Version 33](https://rubinobs.atlassian.net/wiki/pages/viewpage.action?pageId=132612364&pageVersion=33)*"
]
},
{
Expand Down Expand Up @@ -389,7 +389,7 @@
"## Narrative Log\n",
"(Now \"linked things\" from /narrativelog/messages.urls)\n",
"\n",
"| Date Time | Time Lost | Time Lost Type |"
"Date Time | Time Lost | Time Lost Type "
]
},
{
Expand All @@ -410,6 +410,8 @@
"metadata": {},
"source": [
"<a id=\"dev-only\"></a>\n",
"------------\n",
"------------\n",
"# Developer Only Section \n",
"Contains stuff only expected to be useful to developers.\n",
"\n",
Expand Down
8 changes: 4 additions & 4 deletions python/lsst/ts/logging_and_reporting/all_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ def uniform_field_counts(records):
if len(records) == 0:
return None
facets, ignored = get_facets(records)
del facets["day_obs"]
del facets["instrument"]
del facets["target_name"]
del facets["group_name"]
facets.pop("day_obs", None)
facets.pop("instrument", None)
facets.pop("target_name", None)
facets.pop("group_name", None)
return {k: dict(Counter([r[k] for r in records])) for k in facets.keys()}

0 comments on commit 50af48e

Please sign in to comment.