-
Notifications
You must be signed in to change notification settings - Fork 67
Have nowcasting acquisition use issue date from file #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Just to confirm, when running in production you expect each line of the CSV might have a different issue date? |
That's supported here, though the way it's currently implemented only 1 issue gets produced at a time so the CSV files should be homogeneous in that field |
|
If you don't have a use case that needs a different issue per line, I'd prefer putting the issue into the filename instead of the file content -- saves a ton on disk space for the archived csvs. |
That makes sense to me. Since I'm sharing the covidcast CsvImporter that auto-detects source/geo/signal from the filename, would you recommend embedding the issue into signal name and parsing it out later (e.g. make the signal name _), adjusting CsvImporter, ,writing new code to parse, or something else |
|
Borrow the issue-specific importer instead 😄
Format is |
Oh cool, didn't know about that. Thanks for pointing it out, I'll work on integrating it now |
|
@krivard added issue specific csv importer, ready for review again |
Co-authored-by: Katie Mazaitis <krivard@cs.cmu.edu>
krivard
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xlnt
Since nowcasting uses sensor values computed as_of certain dates, the issue dates need to be the as_of dates and not datetime.today() like other acquisitions. These as_of dates are specified during sensorization (it calls the covidcast as_of indicator data to generate the sensors) and added to the files to be ingested as a new column.
cc @mariajahja