Edge case for processing 1 file when >1 workers are provided
@pweigel がすでに取り組んでいます。
2024年11月25日 から。
評価
この issue はまだ評価されていません。
説明
Describe the bug
There seems to be a weird edge case when processing single file "datasets" using more than one worker. I guess this is because https://github.com/graphnet-team/graphnet/blob/65ec11c8ee5f5b8448343a2254df9d6a9bc6187c/src/graphnet/data/dataconverter.py#L277-L293 is setting n_workers = 1 when there is one file and does not use multiprocessing, but https://github.com/graphnet-team/graphnet/blob/65ec11c8ee5f5b8448343a2254df9d6a9bc6187c/src/graphnet/data/dataconverter.py#L259-L263 uses self._num_workers and tries to access the global variables that are used for multiprocessing.
To Reproduce
Steps to reproduce the behavior:
- Process i3 files using >1 workers and only one file in the input folder
Expected behavior
It should allocate just one worker and be processed normally.
Full traceback
File "<path>/graphnet/src/graphnet/data/dataconverter.py", line 260, in _request_event_nos
with global_index.get_lock(): # type: ignore[name-defined]
^^^^^^^^^^^^
NameError: name 'global_index' is not defined. Did you mean: 'init_global_index'?
- 主要言語
- Python
- スター
- 117
- フォーク
- 115
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
graphnet-team/graphnet のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
graphnet-team/graphnet#933 ·
-
Spring cleanオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
graphnet-team/graphnet#927 · コメント 1 件 ·
-
Time for a new version release v1.8.1再び着手できるかも @Aske-Rosted が 75 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンdecision
graphnet-team/graphnet#924 · 担当者 1 名 ·
-
Make kaggle checkpoints part of the CI再び着手できるかも @sevmag が 75 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
graphnet-team/graphnet#921 · コメント 2 件 · 担当者 1 名 ·
-
decision deferred
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
graphnet-team/graphnet#919 ·
graphnet-team/graphnet の issue をすべて見る
似ている issue
-
MarkdownDocSerializer.post_process escapes '\<' to '\<', rendering literal '<' in CommonMarkオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
docling-project/docling-core#1067 ·
メンテナーはふだん 3 日以内に返信
-
correction metadata
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
acl-org/acl-anthology#11101 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] crewai tool create/install/login exit 0 when they fail対応中かも @Kiko0301 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
vllm-project/compressed-tensors#1033 ·
メンテナーはふだん 3 日以内に返信
-
chore kaizen ui-rewrite
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
IBM/mcp-context-forge#7681 ·
メンテナーはふだん 2 日以内に返信