Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Develop `Context` class in context.py

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

関連するプルリクエストがすでにマージされています。

  • #34 @ubdbra001 による — マージ済み

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
tooling

調査の方向性

context.py から始め、提案されている Context のサーフェスと Context プロトコルのドキュメントを比較し、その後、すでに特定されている値について Dataset と FileParts をたどります。associations、ome、tiff に残っている範囲と、それらに関連するクラスをどのように表現すべきかを確認します。完了とは、Context がプロトコルをカバーし、一覧にあるファイルメタデータを公開していることを意味します。

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

説明

The Context class needs to be added, and functionality needs to be developed.

It should reflect the protocols listed here

This class reflects the context for an individual file in a dataset, and so should be instantiated with path to the file in question and the Dataset object for that file.

Functionality that needs to be added:

  • schema: Can be accessed from Dataset object
  • dataset: Passed on creation
  • subject: From entities? Need to develop Subject class?
  • path: Generated in the FileParts object
  • size: os.path.getsize()?
  • entities: Generated in the FileParts object
  • datatype: Generated in the FileParts object
  • suffix: Generated in the FileParts object
  • extension: Generated in the FileParts object
  • modality: From datatype?
  • sidecar: Needs to use load_sidecar and `walk_back'?
  • associations: Need to develop Associations class
  • columns: If the current file has .tsv extesion then parse? What to use to parse?
  • json: If current file has .json extension then parse using JSON module?
  • gzip: Python has in-built gzip module, not sure how to read the header specifically. Need to develop GZip class?
  • nifti_header: Need to develop NiftiHeader class. Can use nibabel for most of this, will likely need guidance.
  • ome: Need to develop Ome class. Never heard of OME before, so will need guidance.
  • tiff: Need to develop Tiff class

I'll start work on the parts that don't require additional classes, but as suggested I'll create stubs for everything else.

@effigies does this look broadly correct?

主要言語
Python
スター
10
フォーク
7
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

bids-standard/python-validator のほかの issue

bids-standard/python-validator の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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