Skip to content

Commit

Permalink
Merge pull request #27 from lsst-sqre/tickets/DM-44956
Browse files Browse the repository at this point in the history
DM-44956: Update prompt-processing notebooks for OR4
  • Loading branch information
hsinfang authored Jun 25, 2024
2 parents 52a57cb + 116b3fc commit df4b94d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
19 changes: 15 additions & 4 deletions prompt-processing/groups.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"outputs": [],
"source": [
"# Times Square parameters\n",
"date = \"2024-04-01\"\n",
"instrument = \"LATISS\"\n",
"survey = \"AUXTEL_PHOTO_IMAGING\"\n",
"date = \"2024-06-18\"\n",
"instrument = \"LSSTComCamSim\"\n",
"survey = \"BLOCK-297\"\n",
"mode = \"INFO\""
]
},
Expand Down Expand Up @@ -838,14 +838,25 @@
"status_code = get_status_code_from_loki_fanout(date)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "1508e52e-b567-4092-805b-72111314d609",
"metadata": {},
"outputs": [],
"source": [
"status_code = status_code[status_code[\"instrument\"] == instrument]\n",
"logger.debug(f\"{len(status_code)} are from {instrument}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3fb2d10b-2f14-434c-88bf-eb3bbec77d0b",
"metadata": {},
"outputs": [],
"source": [
"status_groups = status_code[status_code[\"instrument\"] == instrument].set_index([\"group\", \"detector\"]).groupby(\"code\").groups"
"status_groups = status_code.set_index([\"group\", \"detector\"]).groupby(\"code\").groups"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions prompt-processing/groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ parameters:
date:
type: string
description: Day of observation (YYYY-MM-DD)
default: "2024-04-01"
default: "2024-06-18"
instrument:
type: string
description: Instrument name
default: "LATISS"
default: "LSSTComCamSim"
survey:
type: string
description: Survey name
default: "AUXTEL_PHOTO_IMAGING"
default: "BLOCK-297"
mode:
type: string
description: Report or debug mode
Expand Down

0 comments on commit df4b94d

Please sign in to comment.