Datasets:
Formats:
csv
Languages:
English
Size:
< 1K
Tags:
robotics
embodied-ai
human-demonstration
egocentric-video
bimanual-manipulation
tactile-sensing
License:
Download player/runtime/python/Lib/site-packages/h5py/tests/test_h5pl.py from alinarus/MultimodalData: direct link, hf CLI and curl.
- Browser
- Download file 1.92 kB
-
https://huggingface.co/datasets/alinarus/MultimodalData/resolve/main/player/runtime/python/Lib/site-packages/h5py/tests/test_h5pl.py
- Command line
-
hf download hf://datasets/alinarus/MultimodalData/player/runtime/python/Lib/site-packages/h5py/tests/test_h5pl.py
-
curl -L -o test_h5pl.py https://huggingface.co/datasets/alinarus/MultimodalData/resolve/main/player/runtime/python/Lib/site-packages/h5py/tests/test_h5pl.py
1.92 kB
| # This file is part of h5py, a Python interface to the HDF5 library. | |
| # | |
| # http://www.h5py.org | |
| # | |
| # Copyright 2008-2019 Andrew Collette and contributors | |
| # | |
| # License: Standard 3-clause BSD; see "license.txt" for full license terms | |
| # and contributor agreement. | |
| import pytest | |
| from h5py import h5pl | |
| from h5py.tests.common import insubprocess, subproc_env | |
| def test_default(request): | |
| assert h5pl.size() == 1 | |
| assert h5pl.get(0) == b'h5py_plugin_test' | |
| def test_append(request): | |
| h5pl.append(b'/opt/hdf5/vendor-plugin') | |
| assert h5pl.size() == 2 | |
| assert h5pl.get(0) == b'h5py_plugin_test' | |
| assert h5pl.get(1) == b'/opt/hdf5/vendor-plugin' | |
| def test_prepend(request): | |
| h5pl.prepend(b'/opt/hdf5/vendor-plugin') | |
| assert h5pl.size() == 2 | |
| assert h5pl.get(0) == b'/opt/hdf5/vendor-plugin' | |
| assert h5pl.get(1) == b'h5py_plugin_test' | |
| def test_insert(request): | |
| h5pl.insert(b'/opt/hdf5/vendor-plugin', 0) | |
| assert h5pl.size() == 2 | |
| assert h5pl.get(0) == b'/opt/hdf5/vendor-plugin' | |
| assert h5pl.get(1) == b'h5py_plugin_test' | |
| def test_replace(request): | |
| h5pl.replace(b'/opt/hdf5/vendor-plugin', 0) | |
| assert h5pl.size() == 1 | |
| assert h5pl.get(0) == b'/opt/hdf5/vendor-plugin' | |
| def test_remove(request): | |
| h5pl.remove(0) | |
| assert h5pl.size() == 0 | |