@@ -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]:
629630def 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. "
0 commit comments