Skip to content

Commit

Permalink
BUGFIX: #41, Improper regexp for bottle data.
Browse files Browse the repository at this point in the history
It does not necessarily has space(s) in the end of the header line
(Bottle Date ...).

Thanks @adyork for reporting this bug.
  • Loading branch information
castelao committed Jan 6, 2019
1 parent 51e75a5 commit 8b714c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seabird/cnv.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def prepare_data(self):
\s+ Bottle \s+ Date .* \n
\s+ Position \s+ Time .* \n
"""
attrib_text = re.search(r"""\n \s+ Bottle \s+ Date \s+ (.*) \s+\r?\n \s+ Position \s+ Time""", self.parsed['header'], re.VERBOSE).group(1)
attrib_text = re.search(r"""\n \s+ Bottle \s+ Date \s+ (.*) \s*\r?\n \s+ Position \s+ Time""", self.parsed['header'], re.VERBOSE).group(1)
pattern = re.compile(r"""(?P<varname>[-|+|\w|\.|/]+)""", re.VERBOSE)

self.ids = [0, 1, 2]
Expand Down

0 comments on commit 8b714c5

Please sign in to comment.