gtluu / timsconvert

https://gtluu.github.io/timsconvert/
Apache License 2.0
33 stars 17 forks source link

Convert failed with AttributeError #49

Closed seeholza closed 1 year ago

seeholza commented 1 year ago

When running timsconvert --input /src/inputdir.d --outfile --verbose --chunk_size 10 I get a failure with:

Traceback (most recent call last):
  File "/usr/local/bin/timsconvert", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/bin/run.py", line 168, in main
    run_args['chunk_size'])
  File "/usr/local/lib/python3.7/site-packages/timsconvert/write.py", line 498, in write_lcms_mzml
    compression)
  File "/usr/local/lib/python3.7/site-packages/timsconvert/write.py", line 369, in write_lcms_chunk_to_mzml
    encoding)
  File "/usr/local/lib/python3.7/site-packages/timsconvert/parse.py", line 914, in parse_lcms_tdf
    if mz_array.size != 0 \
AttributeError: 'NoneType' object has no attribute 'size'