Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Develop `Context` class in context.py

Đang mở
#32 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Một pull request liên quan đã được merge.

  • #34 của @ubdbra001 — đã merge

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu trong context.py và so sánh surface được đề xuất của Context với tài liệu về protocol Context, sau đó lần theo Dataset và FileParts đối với các giá trị đã được xác định. Xác nhận phạm vi còn lại cho associations, ome và tiff cũng như cách các class liên quan của chúng nên được biểu diễn; hoàn thành nghĩa là Context bao quát protocol và expose các metadata tệp được liệt kê.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?

Ngôn ngữ chính
Python
Star
10
Fork
7
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bids-standard/python-validator

Tất cả issue của bids-standard/python-validator

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.