Skip to content

Commit afc045e

Browse files
authored
docs: improve QCMetric.description description and build docs (#1719)
1 parent a7a520c commit afc045e

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

docs/source/quality_control.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Description of a curation metric
117117
| `modality` | [Modality](aind_data_schema_models/modalities.md#modality) | Modality |
118118
| `stage` | [Stage](quality_control.md#stage) | Evaluation stage |
119119
| `status_history` | List[[QCStatus](quality_control.md#qcstatus)] | Metric status history |
120-
| `description` | `Optional[str]` | Metric description |
120+
| `description` | `Optional[str]` | Metric description (Describes the measured value and the rule that links the value and status.) |
121121
| `reference` | `Optional[str]` | Metric reference image URL or plot type |
122122
| `tags` | `Dict[str, str]` | Tags (Tags group QCMetric objects. Unique keys define groups of tags, for example {'probe': 'probeA'}.) |
123123
| `evaluated_assets` | `Optional[List[str]]` | List of asset names that this metric depends on (Set to None except when a metric's calculation required data coming from a different data asset.) |
@@ -134,7 +134,7 @@ Description of a single quality control metric
134134
| `stage` | [Stage](quality_control.md#stage) | Evaluation stage |
135135
| `value` | `typing.Any` | Metric value |
136136
| `status_history` | List[[QCStatus](quality_control.md#qcstatus)] | Metric status history |
137-
| `description` | `Optional[str]` | Metric description |
137+
| `description` | `Optional[str]` | Metric description (Describes the measured value and the rule that links the value and status.) |
138138
| `reference` | `Optional[str]` | Metric reference image URL or plot type |
139139
| `tags` | `Dict[str, str]` | Tags (Tags group QCMetric objects. Unique keys define groups of tags, for example {'probe': 'probeA'}.) |
140140
| `evaluated_assets` | `Optional[List[str]]` | List of asset names that this metric depends on (Set to None except when a metric's calculation required data coming from a different data asset.) |

src/aind_data_schema/core/quality_control.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ class QCMetric(DataModel):
4848
stage: Stage = Field(..., title="Evaluation stage")
4949
value: Any = Field(..., title="Metric value")
5050
status_history: List[QCStatus] = Field(default=[], title="Metric status history", min_length=1)
51-
description: Optional[str] = Field(default=None, title="Metric description")
51+
description: Optional[str] = Field(
52+
default=None,
53+
title="Metric description",
54+
description="Describes the measured value and the rule that links the value and status.",
55+
)
5256
reference: Optional[str] = Field(default=None, title="Metric reference image URL or plot type")
5357
tags: dict[str, str] = Field(
5458
default={},

0 commit comments

Comments
 (0)