You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to use the module to read some .fdf files that I have but was getting errors regarding value type. After much debugging I realized that the problem is with the headers. For some reason, each line in the header ends with a carriage return and a new line, i.e. \r\n. So when they are parsed and tokenized, there are now 5 tokens, the last being the \r. The code that reads the header then ignores each line as it only looks at lines with exactly 4 items after tokenization. I confirmed that adding the line "line = RemoveCharacters(line, '\r');" [here] (
Great. I had given up on this and found some work arounds, but would much rather have the fixes implemented here. I'll try to get a PR up in the next week (or two).
I've been trying to use the module to read some .fdf files that I have but was getting errors regarding value type. After much debugging I realized that the problem is with the headers. For some reason, each line in the header ends with a carriage return and a new line, i.e. \r\n. So when they are parsed and tokenized, there are now 5 tokens, the last being the \r. The code that reads the header then ignores each line as it only looks at lines with exactly 4 items after tokenization. I confirmed that adding the line "line = RemoveCharacters(line, '\r');" [here] (
ITKIOFDF/src/itkFDFCommonImageIO.cxx
Lines 55 to 58 in 386ac6d
The text was updated successfully, but these errors were encountered: