You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having trouble when trying to read binary files from H1, in particular HarpDataH1_46_*.bin
Trying to do:
harp_reader = harp.create_reader('h1-device.yml', epoch=harp.REFERENCE_EPOCH)
data = harp_reader.OpticalTrackingRead.read('/path/to/2024-05-07T15-22-53/HarpDataH1/HarpDataH1_46_1904-01-01T00-00-00.bin')
Getting an error from pandas package:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ikharitonov/anaconda3/envs/aeon/lib/python3.12/site-packages/harp/reader.py", line 162, in reader
data = read(
^^^^^
File "/home/ikharitonov/anaconda3/envs/aeon/lib/python3.12/site-packages/harp/io.py", line 122, in read
result = pd.DataFrame(payload, index=index, columns=columns)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ikharitonov/anaconda3/envs/aeon/lib/python3.12/site-packages/pandas/core/frame.py", line 827, in __init__
mgr = ndarray_to_mgr(
^^^^^^^^^^^^^^^
File "/home/ikharitonov/anaconda3/envs/aeon/lib/python3.12/site-packages/pandas/core/internals/construction.py", line 336, in ndarray_to_mgr
_check_values_indices_shape_match(values, index, columns)
File "/home/ikharitonov/anaconda3/envs/aeon/lib/python3.12/site-packages/pandas/core/internals/construction.py", line 420, in _check_values_indices_shape_match
raise ValueError(f"Shape of passed values is {passed}, indices imply {implied}")
ValueError: Shape of passed values is (3730, 6), indices imply (3730, 1)
Probably not an issue with the data, as it has been successfully read here
The text was updated successfully, but these errors were encountered:
Hello,
Having trouble when trying to read binary files from H1, in particular HarpDataH1_46_*.bin
Trying to do:
Getting an error from pandas package:
Probably not an issue with the data, as it has been successfully read here
The text was updated successfully, but these errors were encountered: