Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pothiers committed Sep 13, 2024
1 parent 5afbf11 commit 04f6641
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 52 deletions.
88 changes: 40 additions & 48 deletions notebooks_tsqr/NightLog.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,13 @@
"id": "0",
"metadata": {},
"source": [
"# Night Log"
]
},
{
"cell_type": "markdown",
"id": "1",
"metadata": {},
"source": [
"v 20240918"
"# System-wide Night Log"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "2",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -37,7 +29,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "3",
"id": "2",
"metadata": {
"jupyter": {
"source_hidden": true
Expand All @@ -61,7 +53,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4",
"id": "3",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -90,7 +82,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -107,62 +99,62 @@
{
"cell_type": "code",
"execution_count": null,
"id": "6",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
"display(Markdown(f'''\n",
"Report for **{date}** covering the previous **{days}** observing night(s).\n",
"# TODO For Times Square, UNCOMMENT next line and COMMENT the one after.\n",
"# !pip install git+https://github.com/lsst-ts/ts_logging_and_reporting.git@prototype > /dev/null\n",
"!pip install --upgrade ..\n",
"\n",
"Run on logs from *{server}*.\n",
"'''))"
"from lsst.ts.logging_and_reporting.source_adapters import ExposurelogAdapter, NarrativelogAdapter\n",
"try:\n",
" import lsst.ts.logging_and_reporting.version\n",
" lrversion = lsst.ts.logging_and_reporting.version.__version__\n",
"except:\n",
" lrversion = 'LIVE'"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7",
"id": "6",
"metadata": {},
"outputs": [],
"source": [
"# For Times Square, uncomment next line.\n",
"!pip install git+https://github.com/lsst-ts/ts_logging_and_reporting.git@prototype\n",
"#!pip install --upgrade --editable ..\n",
"#!pip install --upgrade ..\n",
"\n",
"from lsst.ts.logging_and_reporting.source_adapters import ExposurelogAdapter, NarrativelogAdapter\n",
"import lsst.ts.logging_and_reporting.version\n",
"lrversion = lsst.ts.logging_and_reporting.version.__version__\n"
"try:\n",
" from lsst_efd_client import EfdClient\n",
" enable_efd = True\n",
"except:\n",
" enable_efd = False\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8",
"id": "7",
"metadata": {},
"outputs": [],
"source": [
"display(Markdown(f'Use Prototype LR Version: {lrversion}'))"
"display(Markdown(f'''\n",
"Report for **{date}** covering the previous **{days}** observing night(s).\n",
"- Run on logs from **{server}/**\n",
"- Using *Prototype* Logging and Reporting Version: **{lrversion}**\n",
"- {enable_efd=}\n",
"'''))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9",
"id": "8",
"metadata": {},
"outputs": [],
"source": [
"try:\n",
" from lsst_efd_client import EfdClient\n",
" enable_efd = True\n",
"except:\n",
" enable_efd = False\n",
"print(f'{enable_efd=}')"
]
"source": []
},
{
"cell_type": "markdown",
"id": "10",
"id": "9",
"metadata": {},
"source": [
"# Exposure Log"
Expand All @@ -171,7 +163,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "11",
"id": "10",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -192,7 +184,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "12",
"id": "11",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -202,7 +194,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "13",
"id": "12",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -213,7 +205,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "14",
"id": "13",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -234,7 +226,7 @@
},
{
"cell_type": "markdown",
"id": "15",
"id": "14",
"metadata": {},
"source": [
"# Narrative Log\n"
Expand All @@ -243,7 +235,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "16",
"id": "15",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -271,7 +263,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "17",
"id": "16",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -282,7 +274,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "18",
"id": "17",
"metadata": {},
"outputs": [],
"source": []
Expand All @@ -304,7 +296,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion notebooks_tsqr/sources_dashboard.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ts/logging_and_reporting/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Generated by setuptools_scm
__all__ = ["__version__"]
__version__ = "0.1.dev44+g6112206.d20240913"
__version__ = "0.1.dev47+g5afbf11.d20240913"
2 changes: 0 additions & 2 deletions times-square.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
enabled: true
root: notebooks_tsqr
ignore:
- efd_*
- logrep_proto_*
- TEMPLATE_*
description: >
Times Square for project-wide Logging and Reporting.

0 comments on commit 04f6641

Please sign in to comment.