Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Assorted Plots notebook #25

Merged
merged 5 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 37 additions & 34 deletions notebooks_tsqr/NightLog.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,33 @@
"id": "9",
"metadata": {},
"source": [
"# Almanac"
"# DDV"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "10",
"metadata": {
"jupyter": {
"source_hidden": true
}
},
"metadata": {},
"outputs": [],
"source": [
"DDV = f\"{server}/rubintv-dev/ddv/index.html\"\n",
"display_markdown(f'Access DDV part of RubinTV: {DDV}', raw=True)\n"
]
},
{
"cell_type": "markdown",
"id": "11",
"metadata": {},
"source": [
"# Almanac"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "12",
"metadata": {},
"outputs": [],
"source": [
"# Display various almanac values (for moon, sun)\n",
Expand All @@ -199,7 +214,7 @@
},
{
"cell_type": "markdown",
"id": "11",
"id": "13",
"metadata": {},
"source": [
"# Night Report"
Expand All @@ -208,12 +223,8 @@
{
"cell_type": "code",
"execution_count": null,
"id": "12",
"metadata": {
"jupyter": {
"source_hidden": true
}
},
"id": "14",
"metadata": {},
"outputs": [],
"source": [
"# Get data from Night Report log. Display nightly Jira BLOCKS.\n",
Expand Down Expand Up @@ -254,7 +265,7 @@
},
{
"cell_type": "markdown",
"id": "13",
"id": "15",
"metadata": {},
"source": [
"# Exposure Log"
Expand All @@ -263,12 +274,8 @@
{
"cell_type": "code",
"execution_count": null,
"id": "14",
"metadata": {
"jupyter": {
"source_hidden": true
}
},
"id": "16",
"metadata": {},
"outputs": [],
"source": [
"# Get data from Exposure log. Display time log.\n",
Expand Down Expand Up @@ -298,7 +305,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "15",
"id": "17",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -308,12 +315,8 @@
{
"cell_type": "code",
"execution_count": null,
"id": "16",
"metadata": {
"jupyter": {
"source_hidden": true
}
},
"id": "18",
"metadata": {},
"outputs": [],
"source": [
"# Display Observation gaps\n",
Expand All @@ -335,7 +338,7 @@
},
{
"cell_type": "markdown",
"id": "17",
"id": "19",
"metadata": {},
"source": [
"# Narrative Log\n"
Expand All @@ -344,7 +347,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "18",
"id": "20",
"metadata": {
"jupyter": {
"source_hidden": true
Expand Down Expand Up @@ -389,7 +392,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "19",
"id": "21",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -403,7 +406,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "20",
"id": "22",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -413,15 +416,15 @@
{
"cell_type": "code",
"execution_count": null,
"id": "21",
"id": "23",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "22",
"id": "24",
"metadata": {},
"outputs": [],
"source": []
Expand All @@ -443,7 +446,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
61 changes: 57 additions & 4 deletions notebooks_tsqr/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
Times Square notebooks for (potential) use in project-wide Logging & Reporting
# Logging & Reporting Times Square Notebooks

See [offical
documentation](https://rsp.lsst.io/v/usdfdev/guides/times-square/index.html)
on creating notebooks for use by Times Square.
Notebooks found here `./notebooks/` are meant to be run in Times Square towards use in project-wide Nightly Logging & Reporting
Times-Square: <https://usdf-rsp-dev.slac.stanford.edu/times-square>

See [official Times-Square documentation](https://rsp.lsst.io/v/usdfdev/guides/times-square/index.html) on creating notebooks for use by Times Square.

## Development Guidelines

Rapid Prototyping is enabled with the branch `prototype`
Times-Square for this repository displays the `prototype` branch.

- Create a branch for your Jira Ticket in the format `tickets/dm-####` off of `prototype`
- Communicate often with team mate when you want to push changes to `prototype`
- Rebase your branch off `prototype` before merging your branch into `prototype`

Example of flow:

1. `git checkout prototype; git pull`
2. `git checkout -b tickets/dm-23456`
3. `git commit -m "work happened"; git push`
4. `git checkout prototype; git pull`
5. `git checkout tickets/dm-23456`
6. `git rebase prototype`
7. `git checkout prototype; git merge tickets/dm-23456; git push`

&nbsp;

Once Per Sprint (2 week), the developers on this repository (Steve Pothier & Valerie Becker) gather to discuss updates made to `prototype`, outstanding pull requests, and tickets that have been completed.

Once they are in agreement, they merge `prototype` into the `develop` branch and close the related Jira Tickets. Squash commit should be used here with a descriptive title and description in the PR.


## NightLog.ipynb

NightLog.ipynb is our main Logging And Reporting notebook. This notebook is meant to display completed* views of logging information.
Each separate notebook should be used to mature a logging/reporting product, and then expect to be integrated into this 'main' notebook.

\*_Completed to an alpha\beta level -- quick improvements will continue to happen during Fall-Winter 2024_

## Dashboard

Dashboard.ipynb is intended for local development purposes and debugging. Run this notebook not from RSP to evaluate your connection to an array of data sources.
_RSP is not intended to have access to all of the data sources queried here._

## Kernel

Times Square developers/maintainers have indicated that the LSST Kernel should be used in notebooks displayed there.
[RSP Stack info](https://developer.lsst.io/stack/conda.html#rubin-science-platform-notebooks)

## Backend Code

We are working our way into a non-Times-Square dependent project. Towards that effort, we are incrementally abstracting common code out of the notebooks. This code is kept in `./python/lsst/ts/logging_and_reporting/`

`almanac.py` ...
`reports.py` ...
`source_adapters.py` ....
`utils.py` is used for ...
2 changes: 1 addition & 1 deletion notebooks_tsqr/consdb/access_consdb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"import pandas as pd\n",
"from IPython.display import display, Markdown, display_markdown\n",
"\n",
"# URL = \"https://usdf-rsp.slac.stanford.edu/consdb/\" \n",
"# URL = \"https://usdf-rsp.slac.stanford.edu/consdb/\"\n",
"# Need to add that part about the headers to client flow through\n",
"URL = \"http://consdb-pq.consdb:8080/consdb\" # Don't use this one\n",
"\n",
Expand Down
Loading