Skip to content

Commit 1b007fa

Browse files
committed
Added more database columns to 'CLEMImageSeries' table to keep track of image shape, pixel size, and spatial location on grid
1 parent 6fa10e3 commit 1b007fa

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/murfey/util/db.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,19 @@ class CLEMImageSeries(SQLModel, table=True): # type: ignore
292292
back_populates="parent_series",
293293
sa_relationship_kwargs={"cascade": "delete"},
294294
) # One to many
295-
number_of_members: int = (
296-
0 # Expected number of image stacks belonging to this series
297-
)
295+
number_of_members: Optional[int] = Field(default=None)
296+
297+
# Shape and resolution information
298+
pixels_x: Optional[int] = Field(default=None)
299+
pixels_y: Optional[int] = Field(default=None)
300+
pixel_size: Optional[float] = Field(default=None)
301+
units: Optional[str] = Field(default=None)
302+
303+
# Extent of the imaged area in real space
304+
x0: Optional[float] = Field(default=None)
305+
x1: Optional[float] = Field(default=None)
306+
y0: Optional[float] = Field(default=None)
307+
y1: Optional[float] = Field(default=None)
298308

299309
# Composite images
300310
composite_created: bool = False # Has a composite image been created?

0 commit comments

Comments
 (0)