From df5c567482e7e53166ea6070ffb4a04f26faa433 Mon Sep 17 00:00:00 2001 From: t2 Date: Thu, 29 Aug 2019 00:30:02 +0200 Subject: [PATCH] python 3 compatibility * removing dataclasses --- brukeropusreader/block_data.py | 20 +++++++++++++------- setup.py | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/brukeropusreader/block_data.py b/brukeropusreader/block_data.py index 8a7ce37..1e7ee51 100644 --- a/brukeropusreader/block_data.py +++ b/brukeropusreader/block_data.py @@ -1,5 +1,4 @@ from collections import defaultdict -from dataclasses import dataclass from typing import Callable, Tuple from brukeropusreader.block_parser import parse_series, parse_param, parse_text @@ -46,13 +45,20 @@ DIFFERENT_BLOCKS = { } -@dataclass class BlockMeta: - data_type: int - channel_type: int - text_type: int - chunk_size: int - offset: int + def __init__( + self, + data_type: int, + channel_type: int, + text_type: int, + chunk_size: int, + offset: int, + ): + self.data_type = data_type + self.channel_type = channel_type + self.text_type = text_type + self.chunk_size = chunk_size + self.offset = offset def get_name_and_parser(self) -> Tuple[str, Callable]: if self.data_type == 0: diff --git a/setup.py b/setup.py index 0c51b5e..7d648c2 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from distutils.core import setup setup( name="brukeropusreader", - version="1.3.2", + version="1.3.3", description="Bruker OPUS File Reader", author="QED", author_email="brukeropusreader-dev@qed.ai",