Skip to content

Commit 538ef47

Browse files
committed
Fixes
1 parent 4393ebb commit 538ef47

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/murfey/client/contexts/tomo_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ def post_transfer(
222222
logger.warning(f"Unable to find size for SearchMap {transferred_file}")
223223
readout_width = int(
224224
sm_data["TileSetXml"]["AcquisitionSettings"]["a:camera"][
225-
"ReadoutArea"
225+
"a:ReadoutArea"
226226
]["b:width"]
227227
)
228228
readout_height = int(
229229
sm_data["TileSetXml"]["AcquisitionSettings"]["a:camera"][
230-
"ReadoutArea"
230+
"a:ReadoutArea"
231231
]["b:height"]
232232
)
233233
sm_width = int(

src/murfey/util/db.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,10 @@ class TiltSeries(SQLModel, table=True): # type: ignore
353353
tag: str
354354
rsync_source: str
355355
session_id: int = Field(foreign_key="session.id")
356-
search_map_id: int = Field(foreign_key="searchmap.id")
356+
search_map_id: Optional[int] = Field(
357+
foreign_key="searchmap.id",
358+
default=None,
359+
)
357360
tilt_series_length: int = -1
358361
processing_requested: bool = False
359362
x_location: Optional[float] = None

0 commit comments

Comments
 (0)