Skip to content

Commit 15ffe99

Browse files
committed
bump version, linting
1 parent b363fd5 commit 15ffe99

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "signialib"
3-
version = "2.9.0"
3+
version = "2.10.0"
44
description = "Data handling of the IMUs integrated into Signia hearing aids"
55
authors = ["Ann-Kristin Seifer <[email protected]>",
66
"Arne Küderle <[email protected]>",

signialib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
SIGNIA_CAL_PATH = Path(__file__).parent / "calibrations"
1717

1818
__all__ = ["Dataset", "Session", "SIGNIA_CAL_PATH"]
19-
__version__ = "2.9.0"
19+
__version__ = "2.10.0"

signialib/dataset.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ class Dataset: # noqa: too-many-public-methods
5353
time_counter :
5454
Counter in seconds since first sample.
5555
local_datetime_counter :
56-
Counter as np.datetime64 in local timezone. Only available if provided by recoding file, currently only txt files.
56+
Counter as np.datetime64 in local timezone. Only available if provided by recoding file, currently only
57+
txt files.
5758
active_sensor :
5859
The enabled sensors in the dataset.
5960
datastreams :
@@ -116,7 +117,8 @@ def __init__(
116117
info :
117118
Header instance containing all Metainfo about the measurement.
118119
local_datetime_counter :
119-
Counter as np.datetime64 in local timezone. Only available if provided by recoding file, currently only txt files.
120+
Counter as np.datetime64 in local timezone. Only available if provided by recoding file, currently only
121+
txt files.
120122
121123
"""
122124
self.counter = counter
@@ -519,7 +521,6 @@ def plot(self, index: str = None):
519521
Defines x axis label ticks of plot. Default is None, i.e. samples.
520522
521523
"""
522-
523524
if index and index != "local_datetime":
524525
raise ValueError(f"Invalid value for index: {index}. Allowed values: None, 'local_datetime'")
525526
fig = plt.figure()
@@ -629,7 +630,7 @@ def parse_txt(path: path_t) -> Tuple[Dict[str, np.ndarray], np.ndarray, Header]:
629630
def read_in_txt_file(path):
630631
with open(path, encoding="utf-8-sig") as f:
631632
lines = [line.strip() for line in f.readlines()]
632-
if any("DA-01-04-00" in sub for sub in [lines[10],lines[9]]):
633+
if any("DA-01-04-00" in sub for sub in [lines[10], lines[9]]):
633634
raise ValueError(
634635
"Raw .txt format of old app version containing hexadezimal values for sensor data is used. "
635636
"Importer for old format does not exists. "

signialib/session.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,5 @@ def plot(self, index: str = None):
304304
Defines x axis label ticks of plot. Default is None, i.e. samples.
305305
306306
"""
307-
308307
self.datasets = [d.plot(index=index) for d in self.datasets]
309308
return self

tests/test_signialib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33

44
def test_version():
5-
assert __version__ == "2.9.0"
5+
assert __version__ == "2.10.0"

0 commit comments

Comments
 (0)