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

Convenience functions for filtering

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

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

評価

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

調査の方向性

まず、既存の itersections、iterproperties、itervalues フィルター関数と、issue にある例を確認してください。提案されている便利な API と汎用フィルターの leave 操作では、操作のセマンティクスとテンプレート検索が未決定のままです。完了条件は、合意された設計と、実装・テスト済みのフィルタリングインターフェースです。

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

説明

v1.4

Currently it is possible to filter for specific odML objects using the iter-functions with a lambda function, e.g.:

odmldoc.itersections(filter_func=lambda x: x.name=="SpikeSorting" or x.type=="spikesorting")
odmldoc.iterproperties(filter_func=lambda  x:x.name=="IsSpikeSorted")
odmldoc.itervalues(filter_func=lambda x: x.dtype==odml.DType.boolean and x.parent.name=="IsSpikeSorted")

To optimize the visibility of this functionality it would be nice to have (in addition) convenience functions for filtering (cookie-cutter-filter-functions), e.g. by objects:

odmldoc.filter_sections(name="SpikeSorting", type="spikesorting", operation="or")
odmldoc.filter_properties(name="IsSpikeSorted")
odmldoc.filter_values(dtype=odml.DType.boolean, parent_name="IsSpikeSorted", operation="and")

Or by attributes, e.g.:
odmldoc.filter_by_name("SpikeSorting", exact=True)

Or we even discuss the design of a "generic" filter function, e.g.:
odmldoc.filter(objecttype=["sections", "properties"], **kwords)
The question here is how to handle operations (and vs or) within and between search attributes.

And in addition we could think about a "template"-search.

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

環境構築

はじめの一歩

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

G-Node/python-odml のほかの issue

G-Node/python-odml の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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