Skip to content

The.h5 path read by the test file does not match the source path #48

@X-Bernthal

Description

@X-Bernthal

image

Issue Description

In the test file, when reading the .h5 file, the path does not match the path of the source code file, causing the test to fail.

Detailed Description

I noticed that in the test file, when attempting to read the .h5 file, the path seems to not match the path of the source code file. This results in the test being unable to find the required file, leading to a test failure.

Expected Behavior

I expect the test file to correctly find and read the .h5 file without being affected by the mismatched paths.

Steps to Reproduce

1、Run the test file test_full.py.
2、Observe any path-related error messages or test failure messages.

Related Code

Here is the relevant code for reading the .h5 file in the test file:

# Sample code for reading .h5 file
import h5py

with h5py.File('data/test_data.h5', 'r') as fid:
       data = fid['exchange/data']
       ssum = np.sum(np.linalg.norm(data[:], axis=(1, 2)))
# Code for reading the file contents
...

Environment Information

Operating System: (e.g., Windows 10)
Python Version: (e.g., Python 3.8)
Any other relevant environment information
Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions