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.
Files changed (31) hide show
  1. {harp_python-0.4.0 → harp_python-0.4.1}/PKG-INFO +2 -3
  2. {harp_python-0.4.0 → harp_python-0.4.1}/harp/io.py +1 -1
  3. {harp_python-0.4.0 → harp_python-0.4.1}/harp/reader.py +2 -2
  4. {harp_python-0.4.0 → harp_python-0.4.1}/harp_python.egg-info/PKG-INFO +2 -3
  5. {harp_python-0.4.0 → harp_python-0.4.1}/pyproject.toml +2 -3
  6. {harp_python-0.4.0 → harp_python-0.4.1}/tests/data/device.yml +16 -0
  7. {harp_python-0.4.0 → harp_python-0.4.1}/tests/test_reader.py +5 -0
  8. {harp_python-0.4.0 → harp_python-0.4.1}/.github/workflows/build.yml +0 -0
  9. {harp_python-0.4.0 → harp_python-0.4.1}/.gitignore +0 -0
  10. {harp_python-0.4.0 → harp_python-0.4.1}/.gitmodules +0 -0
  11. {harp_python-0.4.0 → harp_python-0.4.1}/LICENSE +0 -0
  12. {harp_python-0.4.0 → harp_python-0.4.1}/MANIFEST.in +0 -0
  13. {harp_python-0.4.0 → harp_python-0.4.1}/README.md +0 -0
  14. {harp_python-0.4.0 → harp_python-0.4.1}/harp/__init__.py +0 -0
  15. {harp_python-0.4.0 → harp_python-0.4.1}/harp/common.yml +0 -0
  16. {harp_python-0.4.0 → harp_python-0.4.1}/harp/model.py +0 -0
  17. {harp_python-0.4.0 → harp_python-0.4.1}/harp/schema.py +0 -0
  18. {harp_python-0.4.0 → harp_python-0.4.1}/harp/typing.py +0 -0
  19. {harp_python-0.4.0 → harp_python-0.4.1}/harp_python.egg-info/SOURCES.txt +0 -0
  20. {harp_python-0.4.0 → harp_python-0.4.1}/harp_python.egg-info/dependency_links.txt +0 -0
  21. {harp_python-0.4.0 → harp_python-0.4.1}/harp_python.egg-info/requires.txt +0 -0
  22. {harp_python-0.4.0 → harp_python-0.4.1}/harp_python.egg-info/top_level.txt +0 -0
  23. {harp_python-0.4.0 → harp_python-0.4.1}/setup.cfg +0 -0
  24. {harp_python-0.4.0 → harp_python-0.4.1}/tests/__init__.py +0 -0
  25. {harp_python-0.4.0 → harp_python-0.4.1}/tests/data/device_0.bin +0 -0
  26. {harp_python-0.4.0 → harp_python-0.4.1}/tests/data/device_44.bin +0 -0
  27. {harp_python-0.4.0 → harp_python-0.4.1}/tests/data/empty_0.bin +0 -0
  28. {harp_python-0.4.0 → harp_python-0.4.1}/tests/data/write_0.bin +0 -0
  29. {harp_python-0.4.0 → harp_python-0.4.1}/tests/params.py +0 -0
  30. {harp_python-0.4.0 → harp_python-0.4.1}/tests/test_io.py +0 -0
  31. {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.0
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 License
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.0
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 License
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 = {text = "MIT 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.
@@ -16,6 +16,11 @@ testdata = [
16
16
  expected_whoAmI=0,
17
17
  expected_registers=["AnalogData"],
18
18
  ),
19
+ DeviceSchemaParam(
20
+ path="data/device.yml",
21
+ expected_whoAmI=0,
22
+ expected_registers=["AnalogDataPayloadSpec"],
23
+ ),
19
24
  ]
20
25
 
21
26
 
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