def finalize(self):
        if(self.resampleNUCtoLSQ6):
            for i in range(len(self.inputs)):
                # the NUC (and potentially the mask) files have been
                # resampled to LSQ6 space.  That means that we can set
                # the last basevol using the last resampled files (i.e.,
                # no arguments to setLastBasevol)
                self.inputs[i].setLastBasevol()
        else:
            for i in range(len(self.inputs)):
                # specify the last basevol explicitly, because applying
                # the non uniformity correction does not resampled the file 
                self.inputs[i].setLastBasevol(self.NUCorrected[i])
                if(self.masks != None):
                    self.inputs[i].setMask(self.masks[i])
Sets the last base volume based on how this object was called/created.  If the files have
dataset/ETHPy150Open Mouse-Imaging-Centre/pydpiper/atoms_and_modules/LSQ6.py/NonUniformityCorrection.finalize