-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation for .btl bottle files #41
Comments
The regex isn't properly matching the bottle header line. I'm no regex whiz, but in testing it does successfully match the first line (string beginning with "Bottle") but fails to match the newline and second header line. |
hi all,
|
I have a .btl file in hand that this regex fails on. The problem is the repeated use of spaces around
it works. It is not at all clear to me that the author intended to require at least three spaces at those points in the regex. |
@joefutrelle, is it possible for you to create an example code how you changed the regex? This would be great. |
@MaraMuchow as it turns out, regexes are a poor way to parse .btl files, because in .btl files the columns are fixed-width. This is especially an issue in the numeric columns where there may not even be a space between two adjacent cells. I have some code that parses .btl files successfully but it has some project-specific stuff about extracting metadata from our file naming convention. Otherwise it is pretty general, and you can see it here: |
It does not necessarily has space(s) in the end of the header line (Bottle Date ...). Thanks @adyork for reporting this bug.
It does not necessarily has space(s) in the end of the header line (Bottle Date ...). Thanks @adyork for reporting this bug.
Thank you for adding bottle file support. Could you add documentation for this type of file?
I am getting an error when trying to load the sample bottle file.
Using seabird Version: 0.10.2
I get the following:
The text was updated successfully, but these errors were encountered: