GithubHelp home page GithubHelp logo

envelope's People

Contributors

nappernick avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

envelope's Issues

Health Area Buttons

Buttons showing the health areas for the given project, rendering a set of buttons, that on press will make an api call & update the allData in the map container component

Map Pins Component

Show all surveys taken in the health area, with different colors for each enumerator

Render All Users Component

Will show all users in the database to the admin
For each user, it will show first name, last name, username, email, and type

Project Page Component

Renders all the cards for that specific user
If it's an admin user, show all projects as cards
If there are a specific number of project cards, cut off the page and have a "show more" button
(Could instead have a drop down for viewing the projects by user if admin)

Render All Project Violin Plots

should split available screen into four sections, one for each of the plots, with each plot clickable to open a page showing only that plot

Redis & Celery

Per recommendation, look into Redis & Celery for creating a queue of jobs (threads) for in memory to handle & learn about shutting down a thread.

Create Project Modal Component

A modal where the top section shows all the client users in the DB, and a switch (https://www.npmjs.com/package/react-switch) to select (but will only allow one user to be selected, so switching one, then another, will result in the first switch being moved to off)
Divider
The second section will render a list of all of the datasets in the data base, with a switch (https://www.npmjs.com/package/react-switch) to indicate that the a new project should be created for each user/dataset combo

has a function to post a new project record to the DB

New User Button

Will open a modal to add a new user & render all the data sets uploaded

Once Sam has Provided Int & Don't Know fields - Create

  • for every column who's header syntax follows the pattern "a/\d+\w+/" or "q/\d+\w+/" create a survey_question record (also check into if I can use regex this way in Python)

integer fields: ["q222_" *, "q311", "q414", "q510", "q515_minutes", "q515_hours", "q526", "q528", "q919_" * "_num"]

  • For each survey, for each int field:
  • create a numpy array of values
  • calculate standard deviation for the list
  • calcluate mean for the list
  • for each value in that numpy array
  • if value is > mean + 2 std, mark outside_2_sd = True
  • if value is < mean - 2 std, mark outside_2_sd = True
  • for every column that could have a don't know, check for value == "Don't know" or value == "-98"

Don't Know fields:
[ "q7", "q7_1", "q8", "q9", "q6", "q12", "q14", "a1", "a2", "a4", "a4_gpslatie", "a4_gpslonge", "a4_gpsaltie", "a4_gpsaccuy", "a4_yes_wrong", "a4_no_wrong1", "a4_no_wrong2", "a5", "a6", "a6_no", "a7", "a8_day", "a8_month", "a8_year", "a9", "a10", "a10_2", "a12_day", "a12_month", "a12_year", "a13", "a14_1", "a14_2", "a14_3", "a14_4", "a14_5", "a14_6", "a14_7", "a14_8", "a14_9", "a14_10", "a14_11", "a14_12", "a14__97", "a15_day", "a15_month", "a15_year", "a16", "a17_day", "a17_month", "a17_year", "a18", "a19", "a20", "a22", "a23_1", "a23_2", "a23_3", "a23_4", "a23_5", "a23_6", "a23_7", "a23_8", "a23_9", "a23_10", "a23_11", "a23_12", "a23__97", "a24", "a24a", "a24b", "a25", "a27", "a27_fix", "a28", "a28_fix", "intratitude", "introgitude", "intro_gpsae", "intro_gpsay", "q16", "_120_1_1_se", "_120_1_2_se", "_120_1_c11a", "_120_1_c11b", "_120_1_c11c", "_120_2_1_se", "_120_2_2_se", "_120_2_c11a", "_120_2_c11b", "_120_2_c11c", "_120_3_1_se", "_120_3_2_se", "_120_3_c11a", "_120_3_c11b", "_120_3_c11c", "_720_1_1_se", "_720_1_2_se", "_720_1_c11a", "_720_1_c11b", "_720_1_c11c", "_720_2_1_se", "_720_2_2_se", "_720_2_c11a", "_720_2_c11b", "_720_2_c11c", "_720_3_1_se", "_720_3_2_se", "_720_3_c11a", "_720_3_c11b", "_720_3_c11c", "q103", "q104", "q105", "q106", "q108", "q109", "num_hh_mems", "q111_1", "q113_1", "q111_2", "q113_2", "q111_3", "q113_3", "q111_4", "q113_4", "q111_5", "q113_5", "q111_6", "q113_6", "q111_7", "q113_7", "q111_8", "q113_8", "q111_9", "q113_9", "q111_10", "q113_10", "q111_11", "q113_11", "q111_12", "q113_12", "q111_13", "q113_13", "q111_14", "q113_14", "q111_15", "q113_15", "q111_16", "q113_16", "q111_17", "q113_17", "q111_18", "q113_18", "q111_19", "q113_19", "q111_20", "q113_20", "under5chilp", "q115b_1", "q115b_2", "q115b_3", "q115b_4", "q115b_5", "q115b_6", "q115b_7", "q115b_8", "q115b_9", "q115b_10", "q115b_11", "q115b_12", "q115b_13", "q115b_14", "q115b_15", "q115b_16", "q115b_17", "q115b_18", "q115b_19", "q115b_20", "q116a_1", "q116b_1", "q116c_1", "q117_1", "q116a_2", "q116b_2", "q116c_2", "q117_2", "q116a_3", "q116b_3", "q116c_3", "q117_3", "q116a_4", "q116b_4", "q116c_4", "q117_4", "q116a_5", "q116b_5", "q116c_5", "q117_5", "q201_1", "q202_1", "q205_1", "q206_1", "q206_1_1", "q206_2_1", "q206_3_1", "q207_1", "q208_1", "q207_1_1_1", "q207_2_1_1", "q207_3_1_1", "q207_1_2_1", "q207_2_2_1", "q207_3_2_1", "q207_1_3_1", "q207_2_3_1", "q207_3_3_1", "q207_1_4_1", "q207_2_4_1", "q207_3_4_1", "q209_1", "q210_1", "q209_1_1_1", "q209_2_1_1", "q209_3_1_1", "q209_1_2_1", "q209_2_2_1", "q209_3_2_1", "q209_1_3_1", "q209_2_3_1", "q209_3_3_1", "q211_1", "q212_1", "q211_1_1_1", "q211_2_1_1", "q211_3_1_1", "q211_1_2_1", "q211_2_2_1", "q211_3_2_1", "q211_1_3_1", "q211_2_3_1", "q211_3_3_1", "q213_1", "q213_1_1", "q213_2_1", "q213_3_1", "q215_1", "q216_1", "q217_1", "q218_1", "q219_1", "q221_1", "q222_1", "q224_1", "q225_1", "q226_1", "q227_1", "q228_1", "q230_1", "q231_1", "q201_2", "q202_2", "q205_2", "q206_2", "q206_1_2", "q206_2_2", "q206_3_2", "q207_2", "q208_2", "q207_1_1_2", "q207_2_1_2", "q207_3_1_2", "q207_1_2_2", "q207_2_2_2", "q207_3_2_2", "q207_1_3_2", "q207_2_3_2", "q207_3_3_2", "q207_1_4_2", "q207_2_4_2", "q207_3_4_2", "q209_2", "q210_2", "q209_1_1_2", "q209_2_1_2", "q209_3_1_2", "q209_1_2_2", "q209_2_2_2", "q209_3_2_2", "q209_1_3_2", "q209_2_3_2", "q209_3_3_2", "q211_2", "q212_2", "q211_1_1_2", "q211_2_1_2", "q211_3_1_2", "q211_1_2_2", "q211_2_2_2", "q211_3_2_2", "q211_1_3_2", "q211_2_3_2", "q211_3_3_2", "q213_2", "q213_1_2", "q213_2_2", "q213_3_2", "q215_2", "q216_2", "q217_2", "q218_2", "q219_2", "q221_2", "q222_2", "q224_2", "q225_2", "q226_2", "q227_2", "q228_2", "q230_2", "q231_2", "q201_3", "q202_3", "q205_3", "q206_3", "q206_1_3", "q206_2_3", "q206_3_3", "q207_3", "q208_3", "q207_1_1_3", "q207_2_1_3", "q207_3_1_3", "q207_1_2_3", "q207_2_2_3", "q207_3_2_3", "q207_1_3_3", "q207_2_3_3", "q207_3_3_3", "q207_1_4_3", "q207_2_4_3", "q207_3_4_3", "q209_3", "q210_3", "q209_1_1_3", "q209_2_1_3", "q209_3_1_3", "q209_1_2_3", "q209_2_2_3", "q209_3_2_3", "q209_1_3_3", "q209_2_3_3", "q209_3_3_3", "q211_3", "q212_3", "q211_1_1_3", "q211_2_1_3", "q211_3_1_3", "q211_1_2_3", "q211_2_2_3", "q211_3_2_3", "q211_1_3_3", "q211_2_3_3", "q211_3_3_3", "q213_3", "q213_1_3", "q213_2_3", "q213_3_3", "q215_3", "q216_3", "q217_3", "q218_3", "q219_3", "q221_3", "q222_3", "q224_3", "q225_3", "q226_3", "q227_3", "q228_3", "q230_3", "q231_3", "q201_4", "q202_4", "q205_4", "q206_4", "q206_1_4", "q206_2_4", "q206_3_4", "q207_4", "q208_4", "q207_1_1_4", "q207_2_1_4", "q207_3_1_4", "q207_1_2_4", "q207_2_2_4", "q207_3_2_4", "q207_1_3_4", "q207_2_3_4", "q207_3_3_4", "q207_1_4_4", "q207_2_4_4", "q207_3_4_4", "q209_4", "q210_4", "q209_1_1_4", "q209_2_1_4", "q209_3_1_4", "q209_1_2_4", "q209_2_2_4", "q209_3_2_4", "q209_1_3_4", "q209_2_3_4", "q209_3_3_4", "q211_4", "q212_4", "q211_1_1_4", "q211_2_1_4", "q211_3_1_4", "q211_1_2_4", "q211_2_2_4", "q211_3_2_4", "q211_1_3_4", "q211_2_3_4", "q211_3_3_4", "q213_4", "q213_1_4", "q213_2_4", "q213_3_4", "q215_4", "q216_4", "q217_4", "q218_4", "q219_4", "q221_4", "q222_4", "q224_4", "q225_4", "q226_4", "q227_4", "q228_4", "q230_4", "q231_4", "q201_5", "q202_5", "q205_5", "q206_5", "q206_1_5", "q206_2_5", "q206_3_5", "q207_5", "q208_5", "q207_1_1_5", "q207_2_1_5", "q207_3_1_5", "q207_1_2_5", "q207_2_2_5", "q207_3_2_5", "q207_1_3_5", "q207_2_3_5", "q207_3_3_5", "q207_1_4_5", "q207_2_4_5", "q207_3_4_5", "q209_5", "q210_5", "q209_1_1_5", "q209_2_1_5", "q209_3_1_5", "q209_1_2_5", "q209_2_2_5", "q209_3_2_5", "q209_1_3_5", "q209_2_3_5", "q209_3_3_5", "q211_5", "q212_5", "q211_1_1_5", "q211_2_1_5", "q211_3_1_5", "q211_1_2_5", "q211_2_2_5", "q211_3_2_5", "q211_1_3_5", "q211_2_3_5", "q211_3_3_5", "q213_5", "q213_1_5", "q213_2_5", "q213_3_5", "q215_5", "q216_5", "q217_5", "q218_5", "q219_5", "q221_5", "q222_5", "q224_5", "q225_5", "q226_5", "q227_5", "q228_5", "q230_5", "q231_5", "q201_6", "q202_6", "q205_6", "q206_6", "q206_1_6", "q206_2_6", "q206_3_6", "q207_6", "q208_6", "q207_1_1_6", "q207_2_1_6", "q207_3_1_6", "q207_1_2_6", "q207_2_2_6", "q207_3_2_6", "q207_1_3_6", "q207_2_3_6", "q207_3_3_6", "q207_1_4_6", "q207_2_4_6", "q207_3_4_6", "q209_6", "q210_6", "q209_1_1_6", "q209_2_1_6", "q209_3_1_6", "q209_1_2_6", "q209_2_2_6", "q209_3_2_6", "q209_1_3_6", "q209_2_3_6", "q209_3_3_6", "q211_6", "q212_6", "q211_1_1_6", "q211_2_1_6", "q211_3_1_6", "q211_1_2_6", "q211_2_2_6", "q211_3_2_6", "q211_1_3_6", "q211_2_3_6", "q211_3_3_6", "q213_6", "q213_1_6", "q213_2_6", "q213_3_6", "q215_6", "q216_6", "q217_6", "q218_6", "q219_6", "q221_6", "q222_6", "q224_6", "q225_6", "q226_6", "q227_6", "q228_6", "q230_6", "q231_6", "q201_7", "q202_7", "q205_7", "q206_7", "q206_1_7", "q206_2_7", "q206_3_7", "q207_7", "q208_7", "q207_1_1_7", "q207_2_1_7", "q207_3_1_7", "q207_1_2_7", "q207_2_2_7", "q207_3_2_7", "q207_1_3_7", "q207_2_3_7", "q207_3_3_7", "q207_1_4_7", "q207_2_4_7", "q207_3_4_7", "q209_7", "q210_7", "q209_1_1_7", "q209_2_1_7", "q209_3_1_7", "q209_1_2_7", "q209_2_2_7", "q209_3_2_7", "q209_1_3_7", "q209_2_3_7", "q209_3_3_7", "q211_7", "q212_7", "q211_1_1_7", "q211_2_1_7", "q211_3_1_7", "q211_1_2_7", "q211_2_2_7", "q211_3_2_7", "q211_1_3_7", "q211_2_3_7", "q211_3_3_7", "q213_7", "q213_1_7", "q213_2_7", "q213_3_7", "q215_7", "q216_7", "q217_7", "q218_7", "q219_7", "q221_7", "q222_7", "q224_7", "q225_7", "q226_7", "q227_7", "q228_7", "q230_7", "q231_7", "q201_8", "q202_8", "q205_8", "q206_8", "q206_1_8", "q206_2_8", "q206_3_8", "q207_8", "q208_8", "q207_1_1_8", "q207_2_1_8", "q207_3_1_8", "q207_1_2_8", "q207_2_2_8", "q207_3_2_8", "q207_1_3_8", "q207_2_3_8", "q207_3_3_8", "q207_1_4_8", "q207_2_4_8", "q207_3_4_8", "q209_8", "q210_8", "q209_1_1_8", "q209_2_1_8", "q209_3_1_8", "q209_1_2_8", "q209_2_2_8", "q209_3_2_8", "q209_1_3_8", "q209_2_3_8", "q209_3_3_8", "q211_8", "q212_8", "q211_1_1_8", "q211_2_1_8", "q211_3_1_8", "q211_1_2_8", "q211_2_2_8", "q211_3_2_8", "q211_1_3_8", "q211_2_3_8", "q211_3_3_8", "q213_8", "q213_1_8", "q213_2_8", "q213_3_8", "q215_8", "q216_8", "q217_8", "q218_8", "q219_8", "q221_8", "q222_8", "q224_8", "q225_8", "q226_8", "q227_8", "q228_8", "q230_8", "q231_8", "q201_9", "q202_9", "q205_9", "q206_9", "q206_1_9", "q206_2_9", "q206_3_9", "q207_9", "q208_9", "q207_1_1_9", "q207_2_1_9", "q207_3_1_9", "q207_1_2_9", "q207_2_2_9", "q207_3_2_9", "q207_1_3_9", "q207_2_3_9", "q207_3_3_9", "q207_1_4_9", "q207_2_4_9", "q207_3_4_9", "q209_9", "q210_9", "q209_1_1_9", "q209_2_1_9", "q209_3_1_9", "q209_1_2_9", "q209_2_2_9", "q209_3_2_9", "q209_1_3_9", "q209_2_3_9", "q209_3_3_9", "q211_9", "q212_9", "q211_1_1_9", "q211_2_1_9", "q211_3_1_9", "q211_1_2_9", "q211_2_2_9", "q211_3_2_9", "q211_1_3_9", "q211_2_3_9", "q211_3_3_9", "q213_9", "q213_1_9", "q213_2_9", "q213_3_9", "q215_9", "q216_9", "q217_9", "q218_9", "q219_9", "q221_9", "q222_9", "q224_9", "q225_9", "q226_9", "q227_9", "q228_9", "q230_9", "q231_9", "q301", "q302", "preg_count1", "preg_count2", "preg_s1_num", "preg_s2_num", "q304", "q304_week", "q304_month", "q306", "q307_1", "q307_2", "q307_3", "q307_4", "q307_5", "q307__97", "q307__98", "q308_1", "q308_2", "q308_3", "q308_4", "q308__97", "q308__98", "q309_1", "q309_2", "q309_3", "q309_4", "q309_5", "q309_6", "q309_7", "q309__97", "q309__98", "q310", "q310_week", "q310_month", "q311", "q312", "q318", "q319", "q320", "q320a", "q320b", "q322a_1", "q322b_1", "q322c_1", "q322a_2", "q322b_2", "q322c_2", "q322a_3", "q322b_3", "q322c_3", "q322a_4", "q322b_4", "q322c_4", "birth_coun1", "birth_coun2", "birth_~1_num", "birth_2_num", "q324", "q325_1", "q325_2", "q325_3", "q325_4", "q325_6", "q325__97", "q325__98", "q326_1", "q326_2", "q326_3", "q326_4", "q326__97", "q326__98", "q327_1", "q327_2", "q327_3", "q327_4", "q327_5", "q327_6", "q327__97", "q327__98", "q328", "q328_week", "q328_month", "q329", "v2419", "q330", "q336", "q337", "q338", "q340", "q341", "q342", "q343", "v2431", "q346", "q347", "q352", "q355", "q356_weeks", "q356_months", "q400", "q401", "q403_1", "q404_day_1", "q404_month_1", "q404_year_1", "q403_2", "q404_day_2", "q404_month_2", "q404_year_2", "q403_3", "q404_day_3", "q404_month_3", "q404_year_3", "q405", "q406", "q408_1", "q409_1", "q409a_num_1", "q409b_num_1", "q410_day_1", "q410_month_1", "q410_year_1", "q408_2", "q409_2", "q409a_num_2", "q409b_num_2", "q410_day_2", "q410_month_2", "q410_year_2", "q408_3", "q409_3", "q409a_num_3", "q409b_num_3", "q410_day_3", "q410_month_3", "q410_year_3", "q413", "q414", "q416_1", "q417_day_1", "q417_month_1", "q417_year_1", "q418_1", "q419_1", "q420_1", "q421_1", "q416_2", "q417_day_2", "q417_month_2", "q417_year_2", "q418_2", "q419_2", "q420_2", "q421_2", "q501", "q502", "q502a", "q502b_1", "q502b_2", "q502b_3", "q502b_4", "q502b_5", "q502b_6", "q502b_7", "q502b_8", "q502b_9", "q502b_10", "q502b_11", "q502b_12", "q502b_13", "q502b_14", "q502b_15", "q502b_16", "q502b_17", "q502b_18", "q502b_19", "q502b_20", "q502c", "q504", "q504_num", "q507", "q508_1", "q508_2", "q508_3", "q508_4", "q508_5", "q508_6", "q508_7", "q508_8", "q508_9", "q508_10", "q508_11", "q508_12", "q508_97", "q508__98", "q509", "q510", "q601", "q511_0", "q511_day", "q511_month", "q511_year", "q512", "q513", "q514_1", "q514_2", "q514_3", "q514_4", "q514_5", "q514__97", "q514__98", "q515_minutes", "q515_hours", "q516_1", "q516_2", "q516_3", "q516_4", "q516_5", "q516__98", "q517", "q518", "q519", "q520", "q523", "q524", "q525_1", "q525_2", "q525_3", "q525_4", "q525_5", "q525_6", "q525_7", "q525_8", "q525__97", "q525_9", "q525__98", "q526", "q527", "q528", "q530", "q531", "q532", "q533", "q535", "q536", "q537_1", "q537_2", "q537_3", "q537_4", "q537_5", "q537_6", "q537__97", "q537__98", "q538", "q543", "q544", "q545", "q546", "q547", "q548", "q549", "q552", "q553", "q554", "q555","q701","q703","q704","q705","q706","q707","q708","q702_1","q702_2","q702_3","q702_4","q702_5","q702_6","q702_7","q702_8","q702_9","q702_10","q702_11","q702__97","q702__98","q708a","q709","q710","q711","q712_month","q712_year","q713_1","q713_2","q713_3","q713_4","q713_5","q713_6","q713__98","q714","q714b_month","q714b_year","q714j","q714k_1","q714k_2","q714k_3","q714k_4","q714k_5","q714k__98","q801","q802","q803","q805","q806","q807","q808","v2732","q809","q810","q811","q812","q813","q816","q817","q818","q819","q820","q821","q822","q901","q904","q905","q906","q907","q908","q909","q910","q911","q912","q913","q914","q915_1","q915_2","q915_3","q915_4","q915_5","q915_6","q915__97","q915__98","q916_1","q916_2","q916_3","q916_4","q916_5","q916_6","q916_7","q916_8","q916_9","q916_10","q916_11","q916_12","q916__97","q916__98","q917","q919_a","q919_a_num","q919_b","q919_b_num","q919_c","q919_c_num","q919_d","q919_d_num","q919_e","q919_e_num","q919_f","q919_f_num","q919_g","q919_g_num","q919_i","q919_i_num","q919_k","q919_k_num","q919_l","q919_l_num","q919_m","q919_m_num","q919_n","q919_n_num","q919_o","q919_o_num","q919_o_more","q919_p","q919_p_num","move1","migration1","migration2","migration3","phone_permn","phone_number","s1_15_2","urbanrural","q1001","q1002","q1004","q1005","q1006","q1007","q1008","q1009","q1009","q1009","q1009"]

New User Modal

Top section will show a set of fields to create a new user, including first name, last name, username, email, password, confirm password, type

Data Processing to allow upload to populate data_sets, surveys, and survey questions

  • for each set of survey questions, populate all survey question static fields
  • once all added, calculate standard deviation on integer fields (only sam will know which are int) - update survey questions records
  • once standard deviation is calculated, determine records that are more than 2 std - update survey questions records outside_2sd field
  • sum don't know responses for relevant fields (only sam will know which are don't know) & num_outliers - populate survey num_outliers & num_dont fields

Project Card Component

A card that will display the project name, dataset it uses, and a count of associated surveys. Below this will be two buttons, one for statistics, that will render the plots for the project, another for map, which will render the map/health areas route.

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.