# Path: anypytools/h5py_wrapper.py
# def _follow_reftarget(elem):
# def _check_input_path(path):
#     def __init__(self, *args, **kwargs):  # noqa
#     def __getitem__(self, path):  # noqa
#     def file(self):  # noqa
#     def parent(self):  # noqa
#     def __contains__(self, name):  # noqa
#     def __init__(self, arg):  # noqa
#     def __getitem__(self, path):  # noqa
#     def file(self):  # noqa
#     def parent(self):  # noqa
#     def __contains__(self, name):  # noqa
#     def __init__(self, arg):  # noqa
#     def file(self):  # noqa
#     def parent(self):  # noqa
# class File(h5py.File):  # noqa
# class Group(h5py.Group):  # noqa
# class Dataset(h5py.Dataset):  # noqa


import os
from anypytools import h5py_wrapper
# -*- coding: utf-8 -*-
"""

"""

h5test_file = os.path.join(
    os.path.dirname(os.path.realpath(__file__)), "test.anydata.h5"
)


def test_file():
    with h5py_wrapper.File(h5test_file) as f:
        t1 = f["/Output/MomentArm"]  # Standard h5py notation
        t2 = f["Output.MomentArm"]  # dot notation
        t3 = f["Main.MyStudy.Output.Model.Knee.Pos"]  # dot notation with full path


def test_group():

# Path: anypytools/h5py_wrapper.py
# def _follow_reftarget(elem):
# def _check_input_path(path):
#     def __init__(self, *args, **kwargs):  # noqa
#     def __getitem__(self, path):  # noqa
#     def file(self):  # noqa
#     def parent(self):  # noqa
#     def __contains__(self, name):  # noqa
#     def __init__(self, arg):  # noqa
#     def __getitem__(self, path):  # noqa
#     def file(self):  # noqa
#     def parent(self):  # noqa
#     def __contains__(self, name):  # noqa
#     def __init__(self, arg):  # noqa
#     def file(self):  # noqa
#     def parent(self):  # noqa
# class File(h5py.File):  # noqa
# class Group(h5py.Group):  # noqa
# class Dataset(h5py.Dataset):  # noqa


# Path: tests/test_h5py_wrapper.py
import os
from anypytools import h5py_wrapper

# -*- coding: utf-8 -*-
"""

"""

h5test_file = os.path.join(
    os.path.dirname(os.path.realpath(__file__)), "test.anydata.h5"
)


def test_file():
    with h5py_wrapper.File(h5test_file) as f:
        t1 = f["/Output/MomentArm"]  # Standard h5py notation
        t2 = f["Output.MomentArm"]  # dot notation
        t3 = f["Main.MyStudy.Output.Model.Knee.Pos"]  # dot notation with full path


def test_group():

    with h5py_wrapper.File(h5test_file) as f: