Skip to content

Commit 250f12f

Browse files
committed
Nest information on milling steps under the 'steps' field in 'LamellaSiteInfo'; store project name and site number as well
1 parent fa1d739 commit 250f12f

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

src/murfey/util/models.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,7 @@ class MillingStepInfo(BaseModel):
178178
width_overlap_rear_right: float | None = None
179179

180180

181-
class LamellaSiteInfo(BaseModel):
182-
"""
183-
Pydantic model that stores all the metadata of interest for a single lamella
184-
site.
185-
"""
186-
187-
# Values not associated with a single step
188-
site_name: str | None = None
189-
stage_info: StagePositionInfo | None = None
190-
181+
class MillingSteps(BaseModel):
191182
# Processing steps supported by AutoTEM
192183
# Preparation stage
193184
eucentric_tilt: MillingStepInfo | None = None
@@ -219,6 +210,20 @@ class LamellaSiteInfo(BaseModel):
219210
polishing_2_electron: MillingStepInfo | None = None
220211

221212

213+
class LamellaSiteInfo(BaseModel):
214+
"""
215+
Pydantic model that stores all the metadata of interest for a single lamella
216+
site.
217+
"""
218+
219+
# Values not associated with a single step
220+
project_name: str | None = None
221+
site_name: str | None = None
222+
site_number: int | None = None
223+
stage_info: StagePositionInfo | None = None
224+
steps: MillingSteps | None = None
225+
226+
222227
"""
223228
=======================================================================================
224229
Single Particle Analysis

0 commit comments

Comments
 (0)