harp-python 0.4.0__tar.gz → 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {harp_python-0.4.0 → harp_python-0.4.1}/PKG-INFO +2 -3
- {harp_python-0.4.0 → harp_python-0.4.1}/harp/io.py +1 -1
- {harp_python-0.4.0 → harp_python-0.4.1}/harp/reader.py +2 -2
- {harp_python-0.4.0 → harp_python-0.4.1}/harp_python.egg-info/PKG-INFO +2 -3
- {harp_python-0.4.0 → harp_python-0.4.1}/pyproject.toml +2 -3
- {harp_python-0.4.0 → harp_python-0.4.1}/tests/data/device.yml +16 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/tests/test_reader.py +5 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/.github/workflows/build.yml +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/.gitignore +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/.gitmodules +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/LICENSE +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/MANIFEST.in +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/README.md +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/harp/__init__.py +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/harp/common.yml +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/harp/model.py +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/harp/schema.py +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/harp/typing.py +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/harp_python.egg-info/SOURCES.txt +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/harp_python.egg-info/dependency_links.txt +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/harp_python.egg-info/requires.txt +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/harp_python.egg-info/top_level.txt +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/setup.cfg +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/tests/__init__.py +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/tests/data/device_0.bin +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/tests/data/device_44.bin +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/tests/data/empty_0.bin +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/tests/data/write_0.bin +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/tests/params.py +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/tests/test_io.py +0 -0
- {harp_python-0.4.0 → harp_python-0.4.1}/tests/test_schema.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: harp-python
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: A low-level interface for loading binary Harp protocol data
|
|
5
5
|
Author-email: Goncalo Lopes <g.lopes@neurogears.org>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Project-URL: Bug Tracker, https://github.com/harp-tech/harp-python/issues
|
|
8
8
|
Project-URL: Source Code, https://github.com/harp-tech/harp-python
|
|
9
9
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -12,7 +12,6 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.9
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Requires-Python: >=3.9.0
|
|
17
16
|
Description-Content-Type: text/markdown
|
|
18
17
|
License-File: LICENSE
|
|
@@ -6,7 +6,7 @@ from typing import Any, BinaryIO, Optional, Union
|
|
|
6
6
|
import numpy as np
|
|
7
7
|
import numpy.typing as npt
|
|
8
8
|
import pandas as pd
|
|
9
|
-
from pandas._typing import Axes
|
|
9
|
+
from pandas._typing import Axes # pyright: ignore[reportPrivateImportUsage]
|
|
10
10
|
|
|
11
11
|
from harp.typing import _BufferLike, _FileLike
|
|
12
12
|
|
|
@@ -10,7 +10,7 @@ from typing import Callable, Iterable, Mapping, Optional, Protocol, Union
|
|
|
10
10
|
|
|
11
11
|
from numpy import dtype
|
|
12
12
|
from pandas import DataFrame, Series
|
|
13
|
-
from pandas._typing import Axes
|
|
13
|
+
from pandas._typing import Axes # pyright: ignore[reportPrivateImportUsage]
|
|
14
14
|
|
|
15
15
|
from harp.io import MessageType, read
|
|
16
16
|
from harp.model import BitMask, GroupMask, Model, PayloadMember, Register
|
|
@@ -82,7 +82,7 @@ def _compose_parser(
|
|
|
82
82
|
params: _ReaderParams,
|
|
83
83
|
) -> Callable[..., DataFrame]:
|
|
84
84
|
def parser(
|
|
85
|
-
data,
|
|
85
|
+
data: Optional[Union[_FileLike, _BufferLike]] = None,
|
|
86
86
|
columns: Optional[Axes] = None,
|
|
87
87
|
epoch: Optional[datetime] = params.epoch,
|
|
88
88
|
keep_type: bool = params.keep_type,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: harp-python
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: A low-level interface for loading binary Harp protocol data
|
|
5
5
|
Author-email: Goncalo Lopes <g.lopes@neurogears.org>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Project-URL: Bug Tracker, https://github.com/harp-tech/harp-python/issues
|
|
8
8
|
Project-URL: Source Code, https://github.com/harp-tech/harp-python
|
|
9
9
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -12,7 +12,6 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.9
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Requires-Python: >=3.9.0
|
|
17
16
|
Description-Content-Type: text/markdown
|
|
18
17
|
License-File: LICENSE
|
|
@@ -7,7 +7,7 @@ description = "A low-level interface for loading binary Harp protocol data"
|
|
|
7
7
|
readme = "README.md"
|
|
8
8
|
requires-python = ">=3.9.0"
|
|
9
9
|
dynamic = ["version"]
|
|
10
|
-
license =
|
|
10
|
+
license = "MIT"
|
|
11
11
|
|
|
12
12
|
dependencies = [
|
|
13
13
|
"pydantic-yaml",
|
|
@@ -20,8 +20,7 @@ classifiers = [
|
|
|
20
20
|
"Programming Language :: Python :: 3",
|
|
21
21
|
"Programming Language :: Python :: 3.9",
|
|
22
22
|
"Programming Language :: Python :: 3.10",
|
|
23
|
-
"Operating System :: OS Independent"
|
|
24
|
-
"License :: OSI Approved :: MIT License",
|
|
23
|
+
"Operating System :: OS Independent"
|
|
25
24
|
]
|
|
26
25
|
|
|
27
26
|
[project.urls]
|
|
@@ -24,6 +24,22 @@ registers:
|
|
|
24
24
|
length: 3
|
|
25
25
|
access: Event
|
|
26
26
|
description: Reports the current values of the analog input lines.
|
|
27
|
+
AnalogDataPayloadSpec:
|
|
28
|
+
address: 44
|
|
29
|
+
type: S16
|
|
30
|
+
length: 3
|
|
31
|
+
access: Event
|
|
32
|
+
description: Reports the current values of the analog input lines.
|
|
33
|
+
payloadSpec:
|
|
34
|
+
AnalogInput0:
|
|
35
|
+
offset: 0
|
|
36
|
+
description: The voltage at the output of the ADC channel 0.
|
|
37
|
+
Encoder:
|
|
38
|
+
offset: 1
|
|
39
|
+
description: The quadrature counter value on Port 2
|
|
40
|
+
AnalogInput1:
|
|
41
|
+
offset: 2
|
|
42
|
+
description: The voltage at the output of the ADC channel 1.
|
|
27
43
|
bitMasks:
|
|
28
44
|
DigitalInputs:
|
|
29
45
|
description: Specifies the state of the digital input lines.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|