We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a558a commit 47d23c9Copy full SHA for 47d23c9
bioimageio/spec/model/v0_5.py
@@ -1236,6 +1236,14 @@ def validate_output_axes(
1236
parent: Optional[LinkedModel] = None
1237
"""The model from which this model is derived, e.g. by fine-tuning the weights."""
1238
1239
+ # todo: add parent self check once we have `id`
1240
+ # @model_validator(mode="after")
1241
+ # def validate_parent_is_not_self(self) -> Self:
1242
+ # if self.parent is not None and self.parent == self.id:
1243
+ # raise ValueError("The model may not reference itself as parent model")
1244
+
1245
+ # return self
1246
1247
run_mode: Annotated[
1248
Optional[RunMode], warn(None, "Run mode '{value}' has limited support across consumer softwares.")
1249
] = None
0 commit comments