Skip to content

Commit

Permalink
Added more software version regex
Browse files Browse the repository at this point in the history
  • Loading branch information
darrencl committed Jul 16, 2024
1 parent 60a1b6f commit 4e54caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions suspect/io/twix.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def get_meta_regex(regex_list, header_string, convert=1, default=None):


def parse_twix_header(header_string):
#print(header_string)
# get the name of the protocol being acquired
protocol_name_matches = [
r"tProtocolName\s*=\s*\"(.*)\"\s*"
Expand All @@ -147,7 +146,8 @@ def parse_twix_header(header_string):

software_version_matches = [
r"<ParamString.\"tMeasuredBaselineString\">\s*{\s*(\".+\")\s*}\n",
r"<ParamString.\"tBaselineString\">\s*{\s*(\".+\")\s*}\n"
r"<ParamString.\"tBaselineString\">\s*{\s*(\".+\")\s*}\n",
r"<ParamString.\"SoftwareVersions\">\s*{\s*(\".+\")\s*}\n"
]
software_version = get_meta_regex(software_version_matches, header_string)

Expand Down

0 comments on commit 4e54caf

Please sign in to comment.