def _list_outputs(self):
    outputs = self.output_spec().get()
    outputs['output_file'] = os.path.abspath(self._gen_outfilename())
    assert os.path.exists(outputs['output_file'])
    if ('grid' in open(outputs['output_file'], 'r').read()):
        outputs['output_grid'] = re.sub('.(nlxfm|xfm)$', '_grid_0.mnc', outputs['output_file'])
    return outputs
def _list_outputs(self):
    outputs = self.output_spec().get()
    outputs['output_file'] = os.path.abspath(self._gen_outfilename())
    assert os.path.exists(outputs['output_file'])
    if ('grid' in open(outputs['output_file'], 'r').read()):
        outputs['output_grid'] = re.sub('.(nlxfm|xfm)$', '_grid_0.mnc', outputs['output_file'])
    return outputs