-
Notifications
You must be signed in to change notification settings - Fork 15
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
gFileOpen fails with trailing whitespace at the end of the file. #4
Comments
This may be resolved with my latest commits. Haven't tested. |
Nope, probably will still fail. |
Really? gFileOpen uses the builtin datenum function, which seems to handle trailing spaces just fine. datestr(datenum('2011-01-01 10:30 ','yyyy-mm-dd HH:MM')). Do you have an example file which shows this phenomenon? -Luke |
Actually, this is trailing empty lines. Poor wording on my part. e.g. a bunch of empty lines at the end of the files. |
Ah, that's from the textscan function then. Could research alternatives if this represents a major issue.... |
yeah, its just a fairly common error that people get but they don't really understand why. Creating a file in excel with some extra rows, convert to .wtr...error in LA. Low priority unless there is an easy fix. |
Ah. Let me think about it and play around later. Here is a question, some import methods are more liberal than textscan, -Luke On 2013-05-09 2:28 PM, Jordan S Read wrote:
|
I would say diversity in NaNs. Got to support NA, NaN and #VALUE! |
Yeah, agreed. The solution needs to include both. Check. On 2013-05-09 2:39 PM, Jordan S Read wrote:
|
Could wrap the easy/fast solution in a try/catch, and then do a line-by-line solution for the catch. Would be quite slow for big files, but better than not knowing why the error happened. |
Datenum fails with multiple lines of empty space after the end of time series data.
The text was updated successfully, but these errors were encountered: