fix: measured threshold is rotation count >= 1
Confirmed by Dawn: any rotation data counts as measured; unmeasured is exactly rotation count 0. The old > 1 rule left single-rotation samples looking like still-to-do work in the Unmeasured view. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a0baa2b54d
commit
2909182bb1
3 files changed
+10
-9
No files matched your search
@@ -165,9 +165,9 @@ class UserSampleSpreadsheet(QAbstractTableModel):
|
||||
|
||||
@staticmethod
|
||||
def _measured(sample: SampleShortInfo) -> bool:
|
||||
# Automatic status, never relabelled by hand: a sample counts as
|
||||
# measured once its rotation count exceeds 1.
|
||||
return isinstance(sample.rotation_count, (int, float)) and sample.rotation_count > 1
|
||||
# Automatic status, never relabelled by hand: any rotation data
|
||||
# counts as measured (>= 1); unmeasured is exactly rotation count 0.
|
||||
return isinstance(sample.rotation_count, (int, float)) and sample.rotation_count >= 1
|
||||
|
||||
def set_queued_ids(self, db_ids) -> None:
|
||||
self.queued_ids = set(db_ids)
|
||||
|
||||
@@ -178,11 +178,11 @@ class TellSamplePanel(QFrame):
|
||||
else:
|
||||
chip = QPushButton(label, self)
|
||||
if key == "measured":
|
||||
chip.setToolTip("Filter measured samples (automatic: rotation count > 1)")
|
||||
chip.setToolTip("Filter measured samples (automatic: rotation count ≥ 1)")
|
||||
elif key == "unmeasured":
|
||||
chip.setToolTip(
|
||||
"Filter samples not yet measured — select all here to queue"
|
||||
" everything still to be done"
|
||||
"Filter samples with no rotation data yet — select all here to"
|
||||
" queue everything still to be done"
|
||||
)
|
||||
chip.setCheckable(True)
|
||||
chip.setChecked(key is None)
|
||||
|
||||
Reference in new issue
Block a user