This file is indexed.

/usr/bin/nipy_tsdiffana is in python-nipy 0.3.0-1ubuntu2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/python
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
''' Analyze, plot time series difference metrics'''

import nipy.externals.argparse as argparse


def main():
    # create the parser
    parser = argparse.ArgumentParser()
    # add the arguments
    parser.add_argument('--out-file', type=str,
                        help='graphics file to write to instead '
                        'of leaving image on screen')
    parser.add_argument('filename', type=str,
                        help='4D image filename')
    # parse the command line
    args = parser.parse_args()
    show = args.out_file is None
    if not show:
        import matplotlib
        matplotlib.use('Agg')
    # Import late to allow setting Agg backend
    import nipy.algorithms.diagnostics as nad
    axes = nad.plot_tsdiffs_image(args.filename, show=show)
    if args.out_file:
        axes[0].figure.savefig(args.out_file)


if __name__ == '__main__':
    main()