Skip to content

Commit

Permalink
fix: make model modality into list
Browse files Browse the repository at this point in the history
  • Loading branch information
tmchartrand committed Dec 13, 2024
1 parent 5d9ae35 commit a27ddc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aind_data_schema/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Model(AindCoreModel):
license: str = Field(..., title="License")
developer_full_name: Optional[List[str]] = Field(default=None, title="Name of developer")
developer_institution: Optional[Organization.ONE_OF] = Field(default=None, title="Institute where developed")
modality: Modality.ONE_OF = Field(..., title="Modality")
modality: List[Modality.ONE_OF] = Field(..., title="Modality")
architecture: ModelArchitecture = Field(..., title="Model architecture")
intended_use: str = Field(..., title="Intended model use", description="Semantic description of intended use")
limitations: Optional[str] = Field(default=None, title="Model limitations")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_constructors(self):
license="CC-BY-4.0",
developer_full_name=["Joe Schmoe"],
developer_institution=Organization.AIND,
modality=Modality.SPIM,
modality=[Modality.SPIM],
pretrained_source_url="url pretrained weights are from",
architecture=ModelArchitecture(
backbone=ModelBackbone.RESNET,
Expand Down

0 comments on commit a27ddc0

Please sign in to comment.