File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/segmentation_skeleton_metrics/utils Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -512,17 +512,17 @@ def process_content(self, content):
512512
513513 Returns
514514 -------
515- tuple
516- A tuple containing the following:
517- - "content" (List[str]): lines from an SWC file after comments.
518- - "offset" (Tuple[int]): offset used to shift coordinate.
515+ content : List[str]
516+ Lines from an SWC file after comments.
517+ offset : Tuple[int]
518+ Offset used to shift coordinate.
519519 """
520520 offset = (0 , 0 , 0 )
521521 for i , line in enumerate (content ):
522522 if line .startswith ("# OFFSET" ):
523523 parts = line .split ()
524524 offset = self .read_voxel (parts [2 :5 ])
525- if not line .startswith ("#" ):
525+ if not line .startswith ("#" ) and len ( line . strip ()) > 0 :
526526 return content [i :], offset
527527
528528 def read_voxel (self , xyz_str , offset ):
You can’t perform that action at this time.
0 commit comments