def registerVolume(self, targetFH, defaultDir):
        sourceFilename = fh.removeBaseAndExtension(self.getLastBasevol())
        targetFilename = fh.removeBaseAndExtension(targetFH.getLastBasevol())
        xfmFileName = [sourceFilename, "to", targetFilename] 
        groupName = self.groupNames[self.currentGroupIndex]
        xfmsDict = self.groupedFiles[self.currentGroupIndex].transforms
        if xfmsDict.has_key(targetFH):
            numPrevXfms = len(xfmsDict[targetFH])
        else:
            numPrevXfms = 0
        xfmFileName += [str(groupName), str(numPrevXfms)]       
        xfmFileWithExt = "_".join(xfmFileName) + ".xfm"
        xfmOutputDir = self.setOutputDirectory(defaultDir)
        # MF TO DO: Need to add in some checking for duplicate names here. 
        outputXfm = fh.createBaseName(xfmOutputDir, xfmFileWithExt)
        self.addAndSetXfmToUse(targetFH, outputXfm)
        return(outputXfm)
Delay active heartbeat
dataset/ETHPy150Open Mouse-Imaging-Centre/pydpiper/atoms_and_modules/registration_file_handling.py/RegistrationPipeFH.registerVolume--crossover with--dataset/ETHPy150Open mrjoes/tornadio2/tornadio2/session.py/Session.delay_heartbeat