This file is indexed.

/usr/share/pyshared/nibabel/gifti/util.py is in python-nibabel 1.2.2-1.

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

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
33
34
35
36
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
#   See COPYING file distributed along with the NiBabel package for the
#   copyright and license terms.
#
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##

from ..volumeutils import Recoder

# Translate dtype.kind char codes to XML text output strings
KIND2FMT = {
    'i': '%i',
    'u': '%i',
    'f': '%10.6f',
    'c': '%10.6f',
    'V': ''}

array_index_order_codes = Recoder(((1, "RowMajorOrder", 'C'),
                                   (2, "ColumnMajorOrder", 'F')),
                                   fields = ('code', 'label', 'npcode'))

gifti_encoding_codes = Recoder(
    ((0, "undef", "GIFTI_ENCODING_UNDEF", "undef"),
     (1, "ASCII", "GIFTI_ENCODING_ASCII", "ASCII"),
     (2, "B64BIN", "GIFTI_ENCODING_B64BIN", "Base64Binary" ),
     (3, "B64GZ", "GIFTI_ENCODING_B64GZ", "GZipBase64Binary"),
     (4, "External", "GIFTI_ENCODING_EXTBIN", "ExternalFileBinary"),
    ), fields = ('code', 'label', 'giistring', 'specs'))

gifti_endian_codes = Recoder(
    ((0, "GIFTI_ENDIAN_UNDEF", "Undef", "undef"),
     (1, "GIFTI_ENDIAN_BIG", "BigEndian", "big"),
     (2, "GIFTI_ENDIAN_LITTLE", "LittleEndian", "little"),
    ), fields = ('code', 'giistring', 'specs', 'byteorder'))