Skip to content

Commit

Permalink
fix: sfreq as attribute in mio
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne de Montalivet committed Dec 8, 2023
1 parent e3e32ea commit f6cd84c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions micromed_io/in_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def __init__(
self.current_channels = None
self.notes = {}
self.note_start_offset = -1
self.sfreq = None

def decode_data_header_packet(self, packet: bytearray) -> None:
"""Decode all (but histories) of the micromed header data packet.
Expand Down Expand Up @@ -105,6 +106,7 @@ def decode_data_header_packet(self, packet: bytearray) -> None:
]
self.micromed_header.data_address = self._header["BOData"]
self.micromed_header.recording_date = self._header["start_time"]
self.sfreq = self.micromed_header.min_sampling_rate

# pylint: disable=too-many-branches,too-many-statements
def decode_data_eeg_packet(
Expand Down

0 comments on commit f6cd84c

Please sign in to comment.