dlce-eva / python-nexus

python-nexus - Generic nexus (.nex, .trees) reader/writer for python
BSD 2-Clause "Simplified" License
11 stars 3 forks source link

remove kw from write_to_file #18

Closed SimonGreenhill closed 4 years ago

SimonGreenhill commented 4 years ago

write_to_file doesn't use **kw, so this removes it. Currently it crashes with:

Traceback (most recent call last):
  File "/Users/simon/.pyenv/versions/3.7.0/bin/nexus", line 8, in <module>
    sys.exit(main())
  File "/Users/simon/.pyenv/versions/3.7.0/lib/python3.7/site-packages/nexus/__main__.py", line 26, in main
    return args.main(args) or 0
  File "/Users/simon/.pyenv/versions/3.7.0/lib/python3.7/site-packages/nexus/commands/trees.py", line 64, in run
    write_output(nexus, args)
  File "/Users/simon/.pyenv/versions/3.7.0/lib/python3.7/site-packages/nexus/cli_util.py", line 79, in write_output
    print('Output written to {0}'.format(writer.write_to_file(args.output, **vars(args))))
TypeError: write_to_file() got an unexpected keyword argument 'log'
SimonGreenhill commented 4 years ago

No, I can't see anything downstream that would have needed it.