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 5fd9e58 commit f1166c4Copy full SHA for f1166c4
src/murfey/util/db.py
@@ -471,7 +471,14 @@ class SelectionStash(SQLModel, table=True): # type: ignore
471
472
473
class TomographyPreprocessingParameters(SQLModel, table=True): # type: ignore
474
- dcg_id: int = Field(primary_key=True, foreign_key="datacollectiongroup.id")
+ __table_args__ = (
475
+ ForeignKeyConstraint(
476
+ ["dcg_id", "dcg_tag"], ["datacollectiongroup.id", "datacollectiongroup.tag"]
477
+ ),
478
+ )
479
+
480
+ dcg_id: int = Field(primary_key=True)
481
+ dcg_tag: int = Field(primary_key=True)
482
pixel_size: float
483
dose_per_frame: float
484
frame_count: int
0 commit comments