`CombinedSlicer` retains range selection when switching to single-handle

オープン 初心者向け
#620 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
79/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
frontend, testing

調査の方向性

再現例は plopp.widgets.slicing の CombinedSlicer を指しています。モード切り替えと値の処理を読み、再現例を実行して関連する slicer テストを確認してください。シングルハンドルモードに切り替えたときに slicer.value が (0, 0) を返し、slicer.int_slicer.value が 0 のままであれば、問題は修正されています。

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

説明

Switching from the slice handle to single entry handle does sometimes not update the selected range.

Here is a minimal reproducer:

import scipp as sc
from plopp.widgets.slicing import CombinedSlicer

slicer = CombinedSlicer(
    dim="x", size=2, coord=sc.arange("x", 2, unit=None)
)
print(slicer.value)  # (0, 1)

# Equivalent to clicking the single-handle mode button.
slicer.slider_toggler.value = "-o-"

print(slicer.int_slicer.value)  # 0: displayed single index
print(slicer.value)             # (0, 1): expected (0, 0)
主要言語
Python
スター
12
フォーク
6
平均マージ
1日 17時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

scipp/plopp のほかの issue

scipp/plopp の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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