Skip to content

Commit 8effd58

Browse files
committed
Moved 'TiffInfo' Pydantic model to above function where it's called
1 parent 3e47841 commit 8effd58

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/murfey/server/api/clem.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,6 @@ class LifInfo(BaseModel):
204204
child_stacks: list[Path] = []
205205

206206

207-
class TiffInfo(BaseModel):
208-
tiff_file: Path
209-
associated_metadata: Optional[Path] = None
210-
associated_series: Optional[str] = None
211-
associated_stack: Optional[Path] = None
212-
213-
214207
@router.post("/sessions/{session_id}/clem/lif_files")
215208
def register_lif_file(
216209
lif_file: LifInfo,
@@ -314,6 +307,13 @@ def register_lif_file(
314307
return True
315308

316309

310+
class TiffInfo(BaseModel):
311+
tiff_file: Path
312+
associated_metadata: Optional[Path] = None
313+
associated_series: Optional[str] = None
314+
associated_stack: Optional[Path] = None
315+
316+
317317
@router.post("/sessions/{session_id}/clem/tiff_files")
318318
def register_tiff_file(
319319
tiff_file: TiffInfo,

0 commit comments

Comments
 (0)