optinist icon indicating copy to clipboard operation
optinist copied to clipboard

[No.22] パラメータの説明機能の実装

Open emuemuJP opened this issue 2 years ago • 3 comments

emuemuJP avatar Jul 04 '23 00:07 emuemuJP

  • #505
    • 見積・検討時の内容

ReiHashimoto avatar Aug 07 '23 05:08 ReiHashimoto

  • pynwbで使用されているデコレータ
    • https://hdmf.readthedocs.io/en/stable/hdmf.utils.html#hdmf.utils.docval
    • デコレータでパラメータを定義する
    • このデコレータを使用している関数をself, **kwargsを引数に取るようにする
    • paramsにyamlからloadしたdictを渡せばyamlの変数もドキュメントに起こせそう
      • yamlのフォーマットをname, doc, type, defaultなどのフィールドで定義するようにすればよさそう

ReiHashimoto avatar Oct 04 '23 07:10 ReiHashimoto

https://autodoc-pydantic.readthedocs.io/en/stable/index.html#

基本的にモデルに対するドキュメンテーション用の仕組みなので、今回のユースケースとはマッチしなそう

ReiHashimoto avatar Oct 06 '23 02:10 ReiHashimoto