Skip to content
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

nhsn doesn't appear on covidcast_epidata() source or signal lists #300

Open
brookslogan opened this issue Jan 29, 2025 · 1 comment
Open

Comments

@brookslogan
Copy link
Contributor

but it seems from doc pages (nhsn, hhs) that it should appear? This might be an upstream metadata issue.

library(epidatr)
#> ! epidatr cache is being used (set env var EPIDATR_USE_CACHE=FALSE if not
#>   intended).
#> ℹ The cache directory is ~/.cache/R/epidatr.
#> ℹ The cache will be cleared after 14 days and will be pruned if it exceeds 4096
#>   MB.
#> ℹ The log of cache transactions is stored at ~/.cache/R/epidatr/logfile.txt.
library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> 
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> 
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
cce <- covidcast_epidata()
"hhs" %in% names(cce$sources)
#> [1] TRUE
"nhsn" %in% names(cce$sources)
#> [1] FALSE
"hhs" %in% (cce$signals %>% as_tibble() %>% .$source)
#> [1] TRUE
"nhsn" %in% (cce$signals %>% as_tibble() %>% .$source)
#> [1] FALSE

Created on 2025-01-29 with reprex v2.1.1

@melange396
Copy link
Contributor

nhsn is definitely in the metadata... you can see it listed as an available source in epivis, and the following python returns "True":

import requests ; print('nhsn' in {m['data_source'] for m in requests.get("https://api.delphi.cmu.edu/epidata/covidcast_meta/").json()['epidata']})

perhaps this is a caching issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants