Skip to content

Commit

Permalink
Check the count with the wanted instrument
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinfang committed Jun 25, 2024
1 parent 8a93540 commit 116b3fc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion prompt-processing/groups.ipynb
Original file line number Diff line number Diff line change
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

0 comments on commit 116b3fc

Please sign in to comment.