From 723b43a875631309dc332fb264bb729680842c78 Mon Sep 17 00:00:00 2001 From: JonShort4 <123035664+JonShort4@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:45:45 -0700 Subject: [PATCH] Update block_data.py Was getting 2CHN instead of final absorbance (AB), so with some trial and error to the block_data I got absorbance for three different instruments. --- brukeropusreader/block_data.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brukeropusreader/block_data.py b/brukeropusreader/block_data.py index 6a09de9..7e1973c 100644 --- a/brukeropusreader/block_data.py +++ b/brukeropusreader/block_data.py @@ -83,7 +83,9 @@ def get_name_and_parser(self) -> Tuple[str, Callable]: return BLOCK_7[self.channel_type], parse_series elif self.data_type == 11: return BLOCK_11[self.channel_type], parse_series - elif self.data_type == 15: + elif self.data_type == 15 and self.channel_type==16 and self.chunk_size <1332 and self.text_type == 0: + return "AB", parse_series + elif self.data_type == 15 and self.channel_type==16 and self.chunk_size >=1332 and self.offset<100000: return "AB", parse_series elif self.data_type == 23: return BLOCK_23[self.channel_type], parse_param