Comments (8)
Hi @grhuynh . Cool getting the hook to the real database in! https://github.com/seattleflu/incidence-mapper/tree/master/dbViewRSQL
I think we should add this to dbViewR::selectFromDB and make the default the real database, and add a flag to pull from the simulated data instead.
If you swap the few lines with allData and the first db definition in dbViewR::selectData (
incidence-mapper/dbViewR/R/selectFromDB.R
Line 44 in d4c960a
I think it'll probably take me 30 minutes to do it, so I assigned this ticket to myself. But if you want to have a go, take it!
from incidence-mapper.
How do credentials work? Is it interactive, or do I have to point it to my local credentials?
from incidence-mapper.
I haven't figured out how to get it R working with local credentials, even though command line access works with local credentials - for the above literally just paste in the username and pw that Thomas sent with keybase/GPG (might have sent it to Clinton if you didn't get them yet. I think I saw that go by on Slack.
from incidence-mapper.
Okay. The cheap solution will probably be to point to a personal credential file that doesn't get checked in, but we'll see what @devclinton suggests. I'll be chipping away very slowly at some stuff over the next few days between symposium talks.
from incidence-mapper.
started a branch to work through db connection without breaking master: https://github.com/seattleflu/incidence-mapper/tree/connect-to-real-data
from incidence-mapper.
It should definitely be possible to use a pgpass
and pg_service.conf
file to make the database connection line simpler and not tied to a particular set of credentials or connection details.
from incidence-mapper.
@famulare and @tsibley got connection to pgpass and pg_service working, you just have to type in the directory to find those files at the top of dbViewR_SQL.R. Assuming you can connect to the database at the command line, then this should work!
from incidence-mapper.
works on connect-to-real-data branch as of 12949d1. See #40 and #31 if you're having issues connecting from your local docker container with your database credentials from @tsibley .
from incidence-mapper.
Related Issues (20)
- make selectFromDB and smoothModel understand flu_shot = (yes,no, dontknow) HOT 1
- investigate priors in smoothModel by looking at posterior distributions of non-existent sites
- Census tract should be a string HOT 2
- adjust for age in latentField models HOT 1
- explore "health reporting areas" as human-readable shapenames that work across counties HOT 1
- add concept of flu_season and interactions with season
- Simulated data and real data workflow have diverged too far and that affects testing HOT 1
- docker-compose up for api-service may failed and exited w/ code 127 HOT 2
- DockerFile.RbuildEnv failed with: The command '/bin/sh -c Rscript -e "devtools::install_version('forecast', version = '8.9', repos = "http://cran.us.r-project.org")" && rm -rf /tmp/*' returned a non-zero code: 1 HOT 5
- Simplify dbViewR::selectfromDB.R lines 84-101 HOT 1
- HTTPS support for the web API HOT 10
- appendCatchmentModel should have a site-location interaction term
- Bug in expandDB: broken handling of nested geographies
- latentFieldModel needs to include CDC_ILI in modeled field if used
- introduce more specific model types in incidenceMapR
- likely bug in priors for spacetime component
- Docker image out of date? HOT 1
- Install local incidence-mapper R packages during docker build? HOT 1
- Specific user access
- Development Environment doesn't support multiple users
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incidence-mapper.