def buildPipeline(self):
            
        # Do LSQ12 alignment prior to non-linear stages if desired
        if self.includeLinear: 
            self.lsq12Params = mp.setLSQ12MinctraccParams(self.fileRes,
                                            subject_matter=self.subject_matter,
                                            reg_protocol=self.lsq12_protocol)
            lsq12reg = lsq12.LSQ12(self.inputFH, 
                                   self.targetFH, 
                                   blurs=self.lsq12Params.blurs,
                                   step=self.lsq12Params.stepSize,
                                   gradient=self.lsq12Params.useGradient,
                                   simplex=self.lsq12Params.simplex,
                                   w_translations=self.lsq12Params.w_translations,
                                   defaultDir=self.defaultDir)
            self.p.addPipeline(lsq12reg.p)
        
        # create the nonlinear registrations
        self.nlinParams = mp.setNlinMinctraccParams(self.fileRes, reg_protocol=self.nlin_protocol)
        for b in self.nlinParams.blurs: 
            if b != -1:           
                self.p.addStage(ma.blur(self.inputFH, b, gradient=True))
                self.p.addStage(ma.blur(self.targetFH, b, gradient=True))
        for i in range(len(self.nlinParams.stepSize)):
            #For the final stage, make sure the output directory is transforms.
            if i == (1 - len(self.nlinParams.stepSize)):
                self.defaultDir = "transforms"
            nlinStage = ma.minctracc(self.inputFH, 
                                     self.targetFH,
                                     defaultDir=self.defaultDir,
                                     blur=self.nlinParams.blurs[i],
                                     gradient=self.nlinParams.useGradient[i],
                                     iterations=self.nlinParams.iterations[i],
                                     step=self.nlinParams.stepSize[i],
                                     w_translations=self.nlinParams.w_translations[i],
                                     simplex=self.nlinParams.simplex[i],
                                     memory=self.nlinParams.memory[i] if self.nlinParams.memory else None,
                                     optimization=self.nlinParams.optimization[i])
            self.p.addStage(nlinStage)
dataset/ETHPy150Open Mouse-Imaging-Centre/pydpiper/atoms_and_modules/minc_modules.py/HierarchicalMinctracc.buildPipeline/swapped operands of `-`