GithubHelp home page GithubHelp logo

Comments (8)

krivard avatar krivard commented on June 23, 2024

The file in question:
20200828_state_deaths_7dav_cumulative_prop.csv.zip

from delphi-epidata.

benjaminysmith avatar benjaminysmith commented on June 23, 2024

I can take a look at this -- can you point me at the code where this error occurs?

from delphi-epidata.

dfarrow0 avatar dfarrow0 commented on June 23, 2024

here's where the correct handling example is logged:

print(' invalid value for %s (%s)' % (str(row), error))

it's unexpected that a file would be archived as failed without any corresponding log message describing the failure reason.

from delphi-epidata.

benjaminysmith avatar benjaminysmith commented on June 23, 2024

Thanks David -- that looks like enough to start debugging the issue. To understand more broadly, where does this code get called from? In one of the automation steps?

from delphi-epidata.

dfarrow0 avatar dfarrow0 commented on June 23, 2024

yep, that's right. here's how it happens:

  • task#33 runs step#63 every hour
  • step#63 causes the steps in flow#7 to run sequentially
  • the first step in flow#7 is step#60, which runs the python file csv_to_database.py
  • csv_to_database imports and calls CsvImporter from file csv_importer.py

from delphi-epidata.

benjaminysmith avatar benjaminysmith commented on June 23, 2024

Still debugging, adding some findings:

  1. The rows seem to parse fine (i.e., cc_rows = CovidcastRow.fromCsvRows(csv_rows, source, signal, time_type, geo_type, time_value, issue, lag, is_wip) returns a list of rows from the file:

ak 4.7801364393158705 None None
al 40.11095411888978 None None
ar 23.64538679687046 None None
az 66.50701137105816 None None
...

  1. The version of the code that executed is prior to this patch, which is why the error message shows the deaths_7dav_cumulative_prop False line -- this is the print(signal, is_wip) from line 80.

from delphi-epidata.

benjaminysmith avatar benjaminysmith commented on June 23, 2024

I suspect that the root cause of the problem may be that there is an infinite value in the data: pr inf None None -- my best guess right now is that this causes the mysql insert to fail, causing a return value of 0 rows. In the case where 0 is returned this falls through to archive_as_failed which would match the error messages in this issue.

from delphi-epidata.

krivard avatar krivard commented on June 23, 2024

Fixed in PR.

from delphi-epidata.

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.