Giter Site home page Giter Site logo

Comments (2)

niconoe avatar niconoe commented on May 21, 2024

Thanks for your report, @nickynicolson!

Do you have a failing archive a hand so I can test/fix from it?

from python-dwca-reader.

niconoe avatar niconoe commented on May 21, 2024

Ok, I received the test archive and it is clearly invalid:

The data file contains a single data column, followed by \r\n. Given it's a single-column file, that can either be interpreted as:

  • A field terminated by \r, followed by `\n' to mark the end of the line.
  • A field with no separator (since it's the last on its line), with \r\n as a line separator.

However, the metafile mentions fieldsTerminatedBy="\t" linesTerminatedBy="\n", so the \r character is not removed.

If we fix the metafile to match the scenarios above ( fieldsTerminatedBy="\r" linesTerminatedBy="\n" or fieldsTerminatedBy="\t" linesTerminatedBy="\r\n"), the data appears correctly.

I'd be tempted to say "wontfix", since I can't see a way to support such invalid archives without breaking other stuff (dropping \r at end of fields without the metafile doesn't seems wise).

@nickynicolson, do you agree?

from python-dwca-reader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.