Skip to content

Class peagen.orm.eval_result.EvalResult

peagen.orm.eval_result.EvalResult

Bases: Base, GUIDPk, Timestamped, TenantBound, Ownable

work_id class-attribute instance-attribute

work_id = acol(
    storage=S(
        PgUUID(as_uuid=True),
        fk=ForeignKeySpec(
            "peagen.works.id", on_delete="CASCADE"
        ),
    )
)

label class-attribute instance-attribute

label = acol(storage=S(String))

metrics class-attribute instance-attribute

metrics = acol(storage=S(JSON, nullable=False))

owner class-attribute instance-attribute

owner = relationship(User, lazy='selectin')

work class-attribute instance-attribute

work = relationship(
    "Work", back_populates="eval_results", lazy="selectin"
)

analyses class-attribute instance-attribute

analyses = relationship(
    "AnalysisResult",
    back_populates="eval_result",
    cascade="all, delete-orphan",
    lazy="selectin",
)