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

Cleanup in prep for Sprint 2 #25

Merged
merged 4 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Route Rangers

The Route Rangers project seeks to provide an innovative solution to bridge the gap between policy makers and the public across the US, enabling urban transit policy makers to utilize data analytics while incorporating public feedback in transit planning. The purpose of our planning tool is to revitalize public interest and participation in transit, driving increased ridership and creating more efficient networks that meet urban community needs.

The Route Rangers project consists of two main components:
Expand Down
1 change: 0 additions & 1 deletion backend/ingestion/extract_census_data.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

16 changes: 10 additions & 6 deletions backend/ingestion/extract_nyt_data.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
import os
import os
from typing import List
import requests
from lxml.html import html_parser
import json

#def create_nyt_client()
# def create_nyt_client()

def extract_table_mta_json(end_point:str,api_key = None)-> str:

def extract_table_mta_json(end_point: str, api_key=None) -> str:
"""
Extracts the json response from a API request to the NYC Data portal
Extracts the json response from a API request to the NYC Data portal
"""
resp = requests.get(end_point)
resp_json = json.loads(resp.text)
return resp_json


if __name__ == "__main__":
resp = extract_table_mta_json(end_point="https://data.ny.gov/resource/uu7b-3kff.json")
print(resp)
resp = extract_table_mta_json(
end_point="https://data.ny.gov/resource/uu7b-3kff.json"
)
print(resp)
9 changes: 0 additions & 9 deletions backend/jimena_first_commit.py

This file was deleted.

3 changes: 3 additions & 0 deletions backend/tests/test_example.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
import pytest


def test_framework():
assert (1 + 1) == 2
8 changes: 0 additions & 8 deletions backend/tests/test_jimena_first_commit.py

This file was deleted.

4 changes: 1 addition & 3 deletions documentation/datamodel.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Datamodel prototype

The datamodel prototype can be found in the following link:

https://lucid.app/lucidchart/acedfe58-359d-42ba-8dc9-b9421517ead9/edit?invitationId=inv_a9fee266-b5b0-4243-bfa8-ccf7f44afd22&referringApp=slack&page=0_0#
The datamodel prototype can be found in the following [lucidchart link](https://lucid.app/lucidchart/acedfe58-359d-42ba-8dc9-b9421517ead9/edit?invitationId=inv_a9fee266-b5b0-4243-bfa8-ccf7f44afd22&referringApp=slack&page=0_0#)

In the diagram, each table has three features, the first column, identifies if a variable is categorized as Primary Key, Foreign Key or none, the second column represent the variable in the table –and therefore one column on the database–, and the third column represents the datatype.

Expand Down
2 changes: 1 addition & 1 deletion documentation/design.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Prototypes

Prototype can be found in Figma
Prototype can be found in [this Figma](https://www.figma.com/file/bXKQi5P1RpGKSb1Ao6w0V5/Community-Transit-Tool?type=design&node-id=90-70&mode=design&t=Hq9pcP90gVrj9UDK-0)
Loading