From 230e39459fb4728e5dee5df36c33953d39285b19 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 16 Dec 2021 15:21:18 -0300 Subject: [PATCH] Improve documentation on Award PowerBIOS analyzer --- biostools/analyzers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/biostools/analyzers.py b/biostools/analyzers.py index 3a630d4..110f542 100644 --- a/biostools/analyzers.py +++ b/biostools/analyzers.py @@ -942,10 +942,11 @@ class AwardPowerAnalyzer(Analyzer): return False def _string(self, line, match): - '''-3[12357ABCDE]([A-Z0-9]{6})''' + '''-3[12357ABCDE][A-Z0-9]{6}''' - # PowerBIOS strings are quite fragmented. Just use the whole line with - # some stripping applied to it. + # PowerBIOS has an Award identification block similar to v4.xx, + # but it doesn't always contain the string. (SIMATIC M7-400 MOV450) + # Just detect the string heuristically and take the whole line. self.string = line.strip(' -')