daniel-kelley / ca-r

California Coved-19 webapp builder
MIT License
0 stars 0 forks source link

ca-r/lib/ca-r/ca-r.rb:173:in `block in convert_covid19cases_test': oops (RuntimeError) #36

Closed daniel-kelley closed 1 year ago

daniel-kelley commented 1 year ago
bin/ca-incidence-all out/covid19cases_test.csv out/                             
/home/dkelley/src/ca-r/lib/ca-r/ca-r.rb:173:in `block in convert_covid19cases_test': oops (RuntimeError)                                                        
        from /usr/share/ruby/csv.rb:2557:in `each'                              
        from /usr/share/ruby/csv.rb:1334:in `block in foreach'                  
        from /usr/share/ruby/csv.rb:1610:in `open'                              
        from /usr/share/ruby/csv.rb:1333:in `foreach'                           
        from /home/dkelley/src/ca-r/lib/ca-r/ca-r.rb:142:in `convert_covid19cases_test'                                                                         
        from /home/dkelley/src/ca-r/lib/ca-r/ca-r.rb:262:in `convert_case'      
        from /home/dkelley/src/ca-r/lib/ca-r/ca-r.rb:378:in `convert'           
        from /home/dkelley/src/ca-r/lib/ca-r/ca-r.rb:497:in `gen_all'           
        from bin/ca-incidence-all:13:in `
'
daniel-kelley commented 1 year ago

Case data not being reported

1006>head -1 ./out/covid19cases_test.csv 
date,area,area_type,population,deaths,cumulative_deaths,total_tests,cumulative_total_tests,positive_tests,cumulative_positive_tests

Can't calculate estimated R without it...

daniel-kelley commented 1 year ago

Looks like positive_tests, cumulative_positive_tests track case data reasonably well. so will use that instead.

daniel-kelley commented 1 year ago

Case data reappeared this week!

daniel-kelley commented 1 year ago

See #37, #38