############################################################################## # Copyright by The HDF Group. # # All rights reserved. # # # # This file is part of the HDF Compass Viewer. The full HDF Compass # # copyright notice, including terms governing use, modification, and # # terms governing use, modification, and redistribution, is contained in # # the file COPYING, which can be found at the root of the source code # # distribution tree. If you do not have access to this file, you may # # request a copy from [email protected]. # ############################################################################## from __future__ import absolute_import, division, print_function from hdf_compass.compass_model.test import container, store from hdf_compass.hdf5_model import HDF5Group, HDF5Store from hdf_compass.utils import data_url import os url = os.path.join(data_url(), "hdf5", "tall.h5") s = store(HDF5Store, url) c = container(HDF5Store, url, HDF5Group, "/")
############################################################################## # Copyright by The HDF Group. # # All rights reserved. # # # # This file is part of the HDF Compass Viewer. The full HDF Compass # # copyright notice, including terms governing use, modification, and # # terms governing use, modification, and redistribution, is contained in # # the file COPYING, which can be found at the root of the source code # # distribution tree. If you do not have access to this file, you may # # request a copy from [email protected]. # ############################################################################## from __future__ import absolute_import, division, print_function from hdf_compass.compass_model.test import container, store from hdf_compass.array_model import ArrayStore, ArrayContainer url = "array://localhost" s = store(ArrayStore, url) c = container(ArrayStore, url, ArrayContainer, None)
# All rights reserved. # # # # This file is part of the HDF Compass Viewer. The full HDF Compass # # copyright notice, including terms governing use, modification, and # # terms governing use, modification, and redistribution, is contained in # # the file COPYING, which can be found at the root of the source code # # distribution tree. If you do not have access to this file, you may # # request a copy from [email protected]. # ############################################################################## # # Run test, from hdf-compass directory:: # python -m unittest hdf_compass.my_model.test # from __future__ import absolute_import, division, print_function from hdf_compass.compass_model.test import container, store from hdf_compass.hdf5rest_model import HDF5RestGroup, HDF5RestStore from hdf_compass.utils import data_url import os # use this url if you are running h5serv locally url = "http://127.0.0.1:5000" #url = "https://data.hdfgroup.org:7258/?host=tall.test.data.hdfgroup.org" s = store(HDF5RestStore, url) c = container(HDF5RestStore, url, HDF5RestGroup, "/")
############################################################################## # Copyright by The HDF Group. # # All rights reserved. # # # # This file is part of the HDF Compass Viewer. The full HDF Compass # # copyright notice, including terms governing use, modification, and # # terms governing use, modification, and redistribution, is contained in # # the file COPYING, which can be found at the root of the source code # # distribution tree. If you do not have access to this file, you may # # request a copy from [email protected]. # ############################################################################## from __future__ import absolute_import, division, print_function from hdf_compass.compass_model.test import container, store from hdf_compass.filesystem_model import Filesystem, Directory url = "file://localhost" s = store(Filesystem, url) c = container(Filesystem, url, Directory, "/")
############################################################################## # Copyright by The HDF Group. # # All rights reserved. # # # # This file is part of the HDF Compass Viewer. The full HDF Compass # # copyright notice, including terms governing use, modification, and # # terms governing use, modification, and redistribution, is contained in # # the file COPYING, which can be found at the root of the source code # # distribution tree. If you do not have access to this file, you may # # request a copy from [email protected]. # ############################################################################## from __future__ import absolute_import, division, print_function import os from hdf_compass.compass_model.test import store, container from hdf_compass.bag_model import BAGGroup, BAGStore from hdf_compass.utils import data_url url = os.path.join(data_url(), "bag", "bdb_00.bag") s = store(BAGStore, url) c = container(BAGStore, url, BAGGroup, "/")