Docuementation for using `inject` is not sufficient

オープン 初心者向け
#2,284 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
documentation

調査の方向性

既存の inject の docstring と issue でリンクされているリファレンスページから始め、その後、計画とテストの書き方に関するプロジェクトのドキュメントを探してください。計画で inject を使う完全な例とそのテスト方法を文書化し、それが標準的なアプローチである理由を説明してください。ドキュメントにこの手順が記載されれば完了です。issue では特定のファイルや受け入れ基準は指定されていません。

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

説明

Docsathon documentation standarisation

Currently, to use blueapi with a plan which will always use the same device, you can use inject. However, there isn't any sufficient documentation within dodal on how it is actually used. Only the doc string which briefly outlines it https://diamondlightsource.github.io/dodal/main/reference/generated/dodal.common.html#dodal.common.inject but this isn't sufficient.

We need to outline in the docs a complete walk through of inject used in plans to show this is the standard way, including on how to write a test for it. Otherwise, other non standard ways will be used in plans e.g I have come across importing the device directly from beamline module and then using ophyd-async ensure_connected plan stub to connect the device within the plan, making the device object of the same thing in two places, once for the life time of the plan (and is reconnected every time in the plan) and second connected and held by blueapi. This has also caused issues with path provider because blueapi will replace the path provider fixture with its own where as with the above way this will not happen if you circumvent blueapi and use the beamline module directly.

Acceptance Criteria

  • Documentation outlines exactly why, what, and how to use inject along with how to test your plan that inject works
主要言語
Python
スター
5
フォーク
13
平均マージ
1日 9時間
マージ済み PR(30日)
18

環境構築

Codespaces で開く

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

はじめの一歩

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

DiamondLightSource/dodal のほかの issue

DiamondLightSource/dodal の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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