@@ -214,7 +214,11 @@ def quantiles(self):
214214 return tuple (np .quantile (self .img , [0.01 , 0.9999 ]))
215215
216216 def set_verbose (self , verbose ):
217- """Set verbose level"""
217+ """
218+ Set verbose level
219+
220+ :param: verbose: amount of message that will be displayed in the Terminal console, from 0 (none) to 4 (a lot, for debugging)
221+ """
218222 self .verbose = verbose
219223 self .epi_metadata ["Verbose" ] = verbose
220224
@@ -638,6 +642,11 @@ def nb_divisions(self):
638642 return self .inspecting .nb_type ("division" )
639643
640644 def set_contour (self , width ):
645+ """
646+ Set the width of the contour of the cells to display the segmentation
647+
648+ :param: width: width of the contours of the segmentation (napari contour parameter). If 0 the cell will be filled by its label
649+ """
641650 self .seglayer .contour = width
642651
643652 ############ Layers
@@ -667,6 +676,9 @@ def check_layers(self):
667676 self .finish_update ()
668677
669678 def finish_update (self , contour = None ):
679+ """
680+ After doing modifications on some layer(s), select back the main layer Segmentation as active (important for shortcut bindings) and refresh it
681+ """
670682 if contour is not None :
671683 self .seglayer .contour = contour
672684 ut .set_active_layer (self .viewer , "Segmentation" )
@@ -691,6 +703,9 @@ def read_epicure_metadata(self):
691703 ut .show_warning ("Could not read EpiCure metadata file " + epiname )
692704
693705 def save_epicures (self , imtype = "float32" ):
706+ """
707+ Save all the current data: the segmentation, the metadata (metadata of the image, last parameters used), the events and some display settings.
708+ """
694709 outname = os .path .join (self .outdir , self .imgname + "_labels.tif" )
695710 ut .writeTif (self .seg , outname , self .epi_metadata ["ScaleXY" ], imtype , what = "Segmentation" )
696711 epiname = os .path .join (self .outdir , self .imgname + "_epidata.pkl" )
@@ -726,7 +741,11 @@ def read_group_data(self, groups):
726741 return groups
727742
728743 def read_graph_data (self , infile ):
729- """Read the graph EpiCure data from opened file"""
744+ """
745+ Read the graph EpiCure data from opened pickle file
746+
747+ :param: infile: instance of pickle file being read. This will read the next part of the pickle file and load it in the track graph.
748+ """
730749 try :
731750 graph = pickle .load (infile )
732751 if self .verbose > 0 :
0 commit comments