Exemple #1
0
 def updateProgress(self,bid):
     """
     Don't do this until we're done with this action!
     TODO: figure out when RT runs and psychopy stuff is done
     """
     print "new progress will be",bid
     bt.setProgress(bid, bt.get_visit(bid,self.json))
     return
Exemple #2
0
 def updateProgress(self,bid):
     """
     Only call this once an action (or structural scan) is done.
     """
     # do nothing if progress > bid (because we're redoing something)
     curProg= lib.get_node(self.json, self.vNodePath + j.VPROGRESS)
     if curProg == "":    # beginning of a visit, or we're in redo mode.
         bt.setProgress(bid, bt.get_visit(bid,self.json))
     elif bt.compareBids(curProg, bid):   # step
         print "new progress will be",bid
         bt.setProgress(bid, bt.get_visit(bid,self.json))
     else:
         print "completed", bid, ", but that's less than", curProg
     return