This PR introduces code that will support a route handler (to be developed) that generates an overall city score. That future route handler will need to generate the underlying scores that will be combined to calculate the city score
Files Modified:
app/helpers.py
app/ml.py
Details:
Pull out the /crime_scr calculation logic into a separate helper function: gen_crime_score
Pull out the /walk_scr calculation logic into a separate helper function: gen_walk_score
Update comments and docstring comments where applicable
Backgound
This PR introduces code that will support a route handler (to be developed) that generates an overall city score. That future route handler will need to generate the underlying scores that will be combined to calculate the city score
Files Modified:
Details:
/crime_scr
calculation logic into a separate helper function:gen_crime_score
/walk_scr
calculation logic into a separate helper function:gen_walk_score