This file is indexed.

/usr/share/pyshared/guidata/tests/hdf5.py is in python-guidata 1.4.1-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
37
38
39
40
41
42
43
44
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 CEA
# Pierre Raybaut
# Licensed under the terms of the CECILL License
# (see guidata/__init__.py for details)

"""
HDF5 I/O demo

DataSet objects may be saved in HDF5 files, a universal hierarchical dataset
file type. This script shows how to save in and then reload data from a HDF5
file.
"""

try:
    import guidata.hdf5io #@UnusedImport
    hdf5_is_available = True
except ImportError:
    hdf5_is_available = False

SHOW = hdf5_is_available # Show test in GUI-based test launcher

import os
from guidata.hdf5io import HDF5Reader, HDF5Writer
from all_features import TestParameters

if __name__ == '__main__':
    # Create QApplication
    import guidata
    _app = guidata.qapplication()
    
    if os.path.exists("test.h5"):
        os.unlink("test.h5")
    
    e = TestParameters()
    if e.edit():
        writer = HDF5Writer("test.h5")
        e.serialize(writer)
    
        e = TestParameters()
        reader = HDF5Reader("test.h5")
        e.deserialize(reader)
        e.edit()