StopDocuments should include more data

オープン
#1,558 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
backend

調査の方向性

まず StartDoc と StopDocument がどのように生成されるかを追跡し、次に issue で言及されている event_model の RunStop 処理を読みます。例のドキュメントを比較し、要求された開始ドキュメントのフィールドを停止ドキュメントに引き継ぐ方法を判断します。StopDocument に関連する StartDoc の情報が含まれ、別途 RunStart を検索する必要がなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

Here is an example of a StopMessage and StopDocument

{
"name": "stop",
"doc": {
"uid": "a5af9bbc-13d6-4d1f-aaab-ed076935b4a5",
"time": 1781265600.6895273,
"run_start": "4e6741e0-be66-4899-8794-e372021cd617",
"exit_status": "success",
"reason": "",
"num_events": {"baseline": 2, "primary": 1},
},
"task_id": "a3b4dd7c-017f-4adc-b9cc-07bb7548bb97",
}

But the information I really need is in the StartDoc Specifically:

"instrument": "i15-1",
    "instrument_session": "cm44163-3",
    "data_session_directory": "/dls/i15-1/data/2026/cm44163-3",
    "detector_file_template": "{instrument}-{scan_id}-{device_name}",
    "scan_file": "i15-1-96680",
    "scan_id": 96680,
    "plan_name": "static_collection_plan",

I can access data by finding the start document by looking at the run_start id "run_start": "4e6741e0-be66-4899-8794-e372021cd617" and then going to find the RunStart, but this adds complexity, and if kinda awful. This is the way workflows is trying to implement it

I would like it if the StopDocument contained the same info as the start doc. The RunStop from event_model allows extra so it should be easy.

主要言語
Python
スター
14
フォーク
14
平均マージ
2日 23時間
マージ済み PR(30日)
27

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DiamondLightSource/blueapi のほかの issue

DiamondLightSource/blueapi の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。