@@ -211,10 +211,10 @@ def filter_chunk(block_id):
211211
212212def erode_subset (
213213 table : pd .DataFrame ,
214- iterations : Optional [ int ] = 1 ,
214+ iterations : int = 1 ,
215215 min_cells : Optional [int ] = None ,
216- threshold : Optional [ int ] = 35 ,
217- keyword : Optional [ str ] = "distance_nn100" ,
216+ threshold : int = 35 ,
217+ keyword : str = "distance_nn100" ,
218218) -> pd .DataFrame :
219219 """Erode coordinates of dataframe according to a keyword and a threshold.
220220 Use a copy of the dataframe as an input, if it should not be edited.
@@ -251,7 +251,7 @@ def downscaled_centroids(
251251 table : pd .DataFrame ,
252252 scale_factor : int ,
253253 ref_dimensions : Optional [Tuple [float , float , float ]] = None ,
254- downsample_mode : Optional [ str ] = "accumulated" ,
254+ downsample_mode : str = "accumulated" ,
255255) -> np .typing .NDArray :
256256 """Downscale centroids in dataframe.
257257
@@ -302,11 +302,11 @@ def downscaled_centroids(
302302
303303def components_sgn (
304304 table : pd .DataFrame ,
305- keyword : Optional [ str ] = "distance_nn100" ,
305+ keyword : str = "distance_nn100" ,
306306 threshold_erode : Optional [float ] = None ,
307- postprocess_graph : Optional [ bool ] = False ,
308- min_component_length : Optional [ int ] = 50 ,
309- min_edge_distance : Optional [ float ] = 30 ,
307+ postprocess_graph : bool = False ,
308+ min_component_length : int = 50 ,
309+ min_edge_distance : float = 30 ,
310310 iterations_erode : Optional [int ] = None ,
311311) -> List [List [int ]]:
312312 """Eroding the SGN segmentation.
@@ -393,10 +393,10 @@ def components_sgn(
393393
394394def label_components (
395395 table : pd .DataFrame ,
396- min_size : Optional [ int ] = 1000 ,
396+ min_size : int = 1000 ,
397397 threshold_erode : Optional [float ] = None ,
398- min_component_length : Optional [ int ] = 50 ,
399- min_edge_distance : Optional [ float ] = 30 ,
398+ min_component_length : int = 50 ,
399+ min_edge_distance : float = 30 ,
400400 iterations_erode : Optional [int ] = None ,
401401) -> List [int ]:
402402 """Label components using graph connected components.
@@ -438,10 +438,10 @@ def label_components(
438438
439439def postprocess_sgn_seg (
440440 table : pd .DataFrame ,
441- min_size : Optional [ int ] = 1000 ,
441+ min_size : int = 1000 ,
442442 threshold_erode : Optional [float ] = None ,
443- min_component_length : Optional [ int ] = 50 ,
444- min_edge_distance : Optional [ float ] = 30 ,
443+ min_component_length : int = 50 ,
444+ min_edge_distance : float = 30 ,
445445 iterations_erode : Optional [int ] = None ,
446446) -> pd .DataFrame :
447447 """Postprocessing SGN segmentation of cochlea.
0 commit comments