File tree Expand file tree Collapse file tree
src/murfey/workflows/clem Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,11 +59,13 @@ class CLEMPreprocessingResult(BaseModel):
5959 @cached_property
6060 def is_denoised (self ) -> bool :
6161 """
62- The "_Lng_LVCC" suffix appended to a CLEM dataset's position name indicates
63- that it's a denoised image set of the same position. These results should
64- override or supersede the original ones once they're available.
62+ The "_Lng_LVCC" and "_Lng_SVCC" suffixes appended to a CLEM dataset's position
63+ name indicate that it's a denoised image set of the same position. They should
64+ override or supersede the original ones if they're present
6565 """
66- return "_Lng_LVCC" in self .series_name
66+ return any (
67+ pattern in self .series_name for pattern in ("_Lng_LVCC" , "_Lng_SVCC" )
68+ )
6769
6870 # Valid Pydantic decorator not supported by MyPy
6971 @computed_field # type: ignore
@@ -73,7 +75,7 @@ def site_name(self) -> str:
7375 Extract just the name of the site by removing the "_Lng_LVCC" suffix from
7476 the series name.
7577 """
76- return self .series_name .replace ("_Lng_LVCC" , "" )
78+ return self .series_name .replace ("_Lng_LVCC" , "" ). replace ( "_Lng_SVCC" , "" )
7779
7880 # Valid Pydantic decorator not supported by MyPy
7981 @computed_field # type: ignore
You can’t perform that action at this time.
0 commit comments