Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bec_lib/bec_lib/metadata_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@


class BasicScanMetadata(BaseModel):
"""Basic scan metadata class. Only requires a sample name. Accepts any additional
"""Basic scan metadata class. Accepts any additional
metadata that the user wishes to provide. Can be extended to add required fields
for specific scans."""

model_config = ConfigDict(extra="allow", validate_assignment=True)
scan_name: str = Field(
"", title="Scan Name", description="A human-friendly identifier for the scan"
)
comment: str = Field("", title="Comment", description="A comment about the scan")
sample_name: str = Field(
"", title="Sample name", description="A human-friendly identifier for the sample"
"", title="Sample Name", description="A human-friendly identifier for the sample"
)


Expand Down
Loading