Repository navigation
Check for unicode byte marks in version < 3 for phylogenetic data files. - #310
evolvedmicrobe wants to merge 1 commit into
Conversation
|
Travis points out this fails on Python 2.6 (where there are no named tuples): Use the tuple indexes explicitly instead - just follow the existing pattern. Also, make the method defintiion conditional on the Python version (otherwise it will be run on Python 3 but do nothing). e.g. becomes: Further minor queries: Was there any reason for introducing yet another extension for a Newick Tree file? And why is the test tree missing a terminal semi-colon (and newline)? What should happen on Python 3 with this file? Should it just work? If so, a matching test for parsing this would be nice. |
|
I think nwk is a reasonably standard extension used for newick files, but haven't seen a standard for that. I added a test for the file running under 3, failing under <3 |
|
The test looks good, but there is no reason to define Perhaps I misread the old version - but your Newick test file now seems to have two trailing semi colons (and no new line at the end). Regarding the filename extension, it just bugged me the example above used |
|
Yep, added the ;; after. Also, woops, looks like I had called my newick file a nexus file, both .new and .nwk are used two lines above in the code for other example files. Will wait to see if this version passes test. |
Same as before, but rebased appropriately.
|
Alright, seems to have passed all tests, should save someone a headache. |
Same as before, but rebased appropriately.