File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -502,6 +502,9 @@ def applycutoff(self):
502502 self .intensity_upd_global ()
503503
504504 def redocutuff (self ):
505+ """
506+ Redo the cutoff operation depending on the current space (real or reciprocal).
507+ """
505508 if self .space .get (): # in real space
506509 self .cube_realcut = self .cube
507510 if not self .transformed :
@@ -514,6 +517,9 @@ def redocutuff(self):
514517 self .intensity_upd_global ()
515518
516519 def newcutoff (self ):
520+ """
521+ Apply a new cutoff based on the current space and cutoff settings.
522+ """
517523 if self .cutoff .get ():
518524 if self .space .get () and self .transformed :
519525 self .cube = self .cube_real
@@ -524,6 +530,9 @@ def newcutoff(self):
524530 self .applycutoff ()
525531
526532 def plot_next_plane (self ):
533+ """
534+ Plot the next plane in the dataset, looping back to the first if at the end.
535+ """
527536 n = self .plane_num .get ()
528537 if n == len (self .cube [self .axis .get ()]) - 1 :
529538 n = 0
@@ -549,6 +558,9 @@ def animation(self):
549558 self .plot_next_plane ()
550559
551560 def multiple_funcs (* funcs ):
561+ """
562+ Executes multiple functions passed as arguments in sequence.
563+ """
552564 for func in funcs :
553565 func
554566
You can’t perform that action at this time.
0 commit comments