fiji / SNT

Legacy project superseded by https://github.com/morphonets/SNT
GNU General Public License v3.0
11 stars 29 forks source link

Allow import of SWC files with leading white space. #3

Closed tferr closed 8 years ago

tferr commented 8 years ago

Some SWC files (from Neuromantic but presumably other software) contain rows with awkward leading spaces (U+0020 characters). Not sure why, or what causes them but these files cannot be imported by SNT, as SNT thinks they are unexpected fields, although the file is perfectly valid. Also strange is that some of the Neuromorph standardized files also seem to be affected by this, e.g., http://www.neuromorpho.org/dableFiles/martone/CNG%20version/e1cb4a5.CNG.swc As a precaution, we will get rid of both leading and trailing white spaces, just in case this ever happens again.

ctrueden commented 8 years ago

Thanks for the nice explanation!